1
0
Fork 0

source/Platform/Win32/Win32Display.cpp: on x64, windows headers undefine GWL_USERDATA, So we define it again.

This commit is contained in:
Henrik Hautakoski 2022-09-10 14:00:43 +02:00
parent 8d57b3a72c
commit 9621ea19bb

View file

@ -12,6 +12,11 @@ namespace sp {
#define WND_CLASSNAME "SPECTRE_WIN32_WNDCLASS"
#if defined(_WIN64) && !defined(GWL_USERDATA)
// x64 undefines this. So we define it again.
#define GWL_USERDATA GWLP_USERDATA
#endif /* defined(_WIN64) && !defined(GWL_USERDATA) */
static bool firstTime = true;
Win32Display::Win32Display() :