diff --git a/auto/src/glew_head.c b/auto/src/glew_head.c index 8fe8638..b8c6854 100644 --- a/auto/src/glew_head.c +++ b/auto/src/glew_head.c @@ -6,6 +6,14 @@ #elif defined(GLEW_EGL) # include #elif defined(_WIN32) +/* + * If NOGDI is defined, wingdi.h won't be included by windows.h, and thus + * wglGetProcAddress won't be declared. It will instead be implicitly declared, + * potentially incorrectly, which we don't want. + */ +# if defined(NOGDI) +# undef NOGDI +# endif # include #elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX)) # include