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:
Hielke Morsink committed 2020-10-24 17:39:16 +02:00
1 parent b54574fe19
commit 2275585795
1 file changed
+3 -1
@@ -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