Skip to content

Commit

Permalink
add #define NOMINMAX before windows.h includes
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed May 18, 2018
1 parent e8373ff commit 38fac70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Platform.cpp
Expand Up @@ -3,6 +3,7 @@
#include <cstdio>
#include <cassert>
#ifdef WIN
#define NOMINMAX
#include <shlobj.h>
#include <shlwapi.h>
#include <windows.h>
Expand Down
1 change: 1 addition & 0 deletions src/Update.cpp
Expand Up @@ -10,6 +10,7 @@
#include <stdint.h>

#ifdef WIN
#define NOMINMAX
#include <windows.h>
#else
#include <unistd.h>
Expand Down
1 change: 1 addition & 0 deletions src/client/Client.cpp
Expand Up @@ -15,6 +15,7 @@
#endif

#ifdef WIN
#define NOMINMAX
#include <shlobj.h>
#include <shlwapi.h>
#include <windows.h>
Expand Down

0 comments on commit 38fac70

Please sign in to comment.