mirror of https://github.com/OpenRCT2/OpenRCT2.git
Undef Windows.h macros that cause conflicts
This caused errors on calls to Path::CreateDirectory in source files that include OpenGLAPI.h.
This commit is contained in:
parent
b54574fe19
commit
2275585795
|
@ -42,8 +42,10 @@
|
|||
#endif
|
||||
|
||||
#include <SDL_opengl.h>
|
||||
// OpenRCT2: SDL_opengl.h includes windows.h, which defines the CreateWindow macro and causes conflicts
|
||||
// OpenRCT2: SDL_opengl.h includes windows.h, which defines some macros that can cause conflicts
|
||||
#undef CreateWindow
|
||||
#undef CreateDirectory
|
||||
#undef GetMessage
|
||||
|
||||
#ifdef OPENGL_NO_LINK
|
||||
|
||||
|
|
Loading…
Reference in New Issue