mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user