summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/windows.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/windows.hpp b/src/windows.hpp
index 35024ba..8fc98b0 100644
--- a/src/windows.hpp
+++ b/src/windows.hpp
@@ -24,7 +24,9 @@
// on the windows platform.
#define _WINSOCKAPI_
-#define NOMINMAX
+#ifndef NOMINMAX
+#define NOMINMAX // No min and max functions, these clash with C++.
+#endif
#define _CRT_SECURE_NO_WARNINGS
#ifndef WIN32_LEAN_AND_MEAN