Skip to content

Commit

Permalink
Fix to compile on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yvt committed Mar 4, 2017
1 parent 28be556 commit f5507b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Gui/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <windows.h>

#include <DbgHelp.h>
#include <shlobj.h>
#include <windows.h>

#define strncasecmp(x, y, z) _strnicmp(x, y, z)
#define strcasecmp(x, y) _stricmp(x, y)
Expand Down

0 comments on commit f5507b7

Please sign in to comment.