]> git.sesse.net Git - stockfish/blobdiff - src/misc.cpp
Fix an MSVC 2017 error and warnings.
[stockfish] / src / misc.cpp
index 86c16d36174d3e0bac9616efa54bcb532312219e..4e2d40579153cd757376399ec742213371277c72 100644 (file)
 #undef  _WIN32_WINNT
 #define _WIN32_WINNT 0x0601 // Force to include needed API prototypes
 #endif
+
+#ifndef NOMINMAX
+#define NOMINMAX
+#endif
+
 #include <windows.h>
 // The needed Windows API for processor groups could be missed from old Windows
 // versions, so instead of calling them directly (forcing the linker to resolve