Fix macro redefinition warning
APIENTRY is unconditionally defined through windows.h while it already has been defined previously in oglpfuncs.h, resulting in a macro redefinition warning. In this case fix the warning by undefining the macro prior to including windows.h.
This commit is contained in:
parent
8267df75fb
commit
3486c5707b
@ -18,6 +18,12 @@
|
||||
#define WIN32_LEAN_AND_MEAN 1
|
||||
#define LE_ME_ISDEF
|
||||
#endif
|
||||
|
||||
/*
|
||||
APIENTRY is defined in oglpfuncs.h as well as by windows.h. Undefine
|
||||
it to prevent a macro redefinition warning.
|
||||
*/
|
||||
#undef APIENTRY
|
||||
#include <windows.h> //For wglGetProcAddress
|
||||
#ifdef LE_ME_ISDEF
|
||||
#undef WIN32_LEAN_AND_MEAN
|
||||
|
Loading…
Reference in New Issue
Block a user