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:
@@ -18,6 +18,12 @@
|
|||||||
#define WIN32_LEAN_AND_MEAN 1
|
#define WIN32_LEAN_AND_MEAN 1
|
||||||
#define LE_ME_ISDEF
|
#define LE_ME_ISDEF
|
||||||
#endif
|
#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
|
#include <windows.h> //For wglGetProcAddress
|
||||||
#ifdef LE_ME_ISDEF
|
#ifdef LE_ME_ISDEF
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
|
Reference in New Issue
Block a user