mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 05:45:07 +00:00
Fix wglGetProcAddress-related crash on Windows with NOGDI defined
This commit is contained in:
parent
7d72257b0f
commit
4a0d48fc7c
@ -12,6 +12,14 @@
|
||||
# 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