From f5507b78f915e7768fed38973f3e448d25fb800c Mon Sep 17 00:00:00 2001 From: yvt Date: Sat, 4 Mar 2017 02:06:53 -0800 Subject: [PATCH] Fix to compile on Windows --- Sources/Gui/Main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)