Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
third-party
glew
Commits
4a0d48fc
Commit
4a0d48fc
authored
Aug 27, 2016
by
Dillon Cower
Browse files
Fix wglGetProcAddress-related crash on Windows with NOGDI defined
parent
7d72257b
Changes
1
Hide whitespace changes
Inline
Side-by-side
auto/src/wglew_head.h
View file @
4a0d48fc
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment