diff --git a/Sources/Gui/Main.cpp b/Sources/Gui/Main.cpp index eec925acd..fcfc62a9e 100644 --- a/Sources/Gui/Main.cpp +++ b/Sources/Gui/Main.cpp @@ -68,9 +68,11 @@ FILE __iob_func[3] = {*stdin, *stdout, *stderr}; DEFINE_SPADES_SETTING(cl_showStartupWindow, "1"); #ifdef WIN32 +// windows.h must be included before DbgHelp.h and shlobj.h. +#include + #include #include -#include #define strncasecmp(x, y, z) _strnicmp(x, y, z) #define strcasecmp(x, y) _stricmp(x, y)