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 2020-10-24 17:30:20 +02:00
parent b54574fe19
commit 2275585795
1 changed files with 3 additions and 1 deletions

View File

@ -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