]> git.sesse.net Git - stockfish/blobdiff - src/lock.h
Replaced macros Min() and Max() with corresponding STL algorithms std::min() and...
[stockfish] / src / lock.h
index 939b7da0ad544052b104ce04d0c1b13a92c02469..b64293cf71f8c014e36bd61722b44dca2c5b37bc 100644 (file)
@@ -38,9 +38,11 @@ typedef pthread_cond_t WaitCondition;
 
 #else
 
+#define NOMINMAX // disable macros min() and max()
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #undef WIN32_LEAN_AND_MEAN
+#undef NOMINMAX
 
 // Default fast and race free locks and condition variables
 #if !defined(OLD_LOCKS)