1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-10-08 07:07:25 -04:00

MinGW also supports __declspec(dllimport).

This commit is contained in:
Camilla Berglund 2015-02-22 18:14:30 +01:00
parent 1247fc030f
commit c5353646b6

View File

@ -106,13 +106,7 @@ extern "C" {
/* Under Windows, we need WINGDIAPI defined */
#if !defined(WINGDIAPI) && defined(_WIN32)
#if defined(_MSC_VER) || defined(__POCC__)
/* Microsoft Visual C++ and Pelles C */
#define WINGDIAPI __declspec(dllimport)
#else
/* Others (e.g. MinGW, Cygwin) */
#define WINGDIAPI extern
#endif
#define GLFW_WINGDIAPI_DEFINED
#endif /* WINGDIAPI */