summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/AppHdr.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/AppHdr.h')
-rw-r--r--crawl-ref/source/AppHdr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h
index 80357f1d85..5f2cf6fa0c 100644
--- a/crawl-ref/source/AppHdr.h
+++ b/crawl-ref/source/AppHdr.h
@@ -24,6 +24,8 @@
#ifdef TARGET_COMPILER_VC
/* Disable warning about the way VC handles the throw() specifier */
#pragma warning (disable: 4290)
+/* Don't define min and max as macros, define them via STL */
+#define NOMINMAX
#endif
// The maximum memory that the user-script Lua interpreter can