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