From 9621ea19bb833c576d235c376a9d7f18042ecf5b Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 10 Sep 2022 14:00:43 +0200 Subject: [PATCH] source/Platform/Win32/Win32Display.cpp: on x64, windows headers undefine GWL_USERDATA, So we define it again. --- source/Platform/Win32/Win32Display.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/Platform/Win32/Win32Display.cpp b/source/Platform/Win32/Win32Display.cpp index 67993fa..887688c 100644 --- a/source/Platform/Win32/Win32Display.cpp +++ b/source/Platform/Win32/Win32Display.cpp @@ -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() :