mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-22 14:45:06 +00:00
Move #undef NOGDI from wglew_head.h to glew_head.c
This commit is contained in:
parent
4a0d48fc7c
commit
2ca0184814
@ -6,6 +6,14 @@
|
||||
#elif defined(GLEW_EGL)
|
||||
# include <GL/eglew.h>
|
||||
#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 <GL/wglew.h>
|
||||
#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))
|
||||
# include <GL/glxew.h>
|
||||
|
@ -12,14 +12,6 @@
|
||||
# ifndef WIN32_LEAN_AND_MEAN
|
||||
# define WIN32_LEAN_AND_MEAN 1
|
||||
# endif
|
||||
/*
|
||||
* 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
|
||||
* incorrectly, which we don't want.
|
||||
*/
|
||||
# if defined(NOGDI)
|
||||
# undef NOGDI
|
||||
# endif
|
||||
#include <windows.h>
|
||||
# undef WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user