summaryrefslogtreecommitdiff
path: root/pch.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-07-01 10:29:31 -0400
committerEliot Horowitz <eliot@10gen.com>2010-07-01 10:29:31 -0400
commit51ad1d3292843f0dbc71fde2c4e4a171a9643a87 (patch)
tree62d720eebf43b0df33494f6f38f5835fd1505c07 /pch.h
parentfd8d8670a694fd4f9dabffd7cec812a6c1155474 (diff)
downloadmongo-51ad1d3292843f0dbc71fde2c4e4a171a9643a87.tar.gz
fix NOMINMAX handling
Diffstat (limited to 'pch.h')
-rw-r--r--pch.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/pch.h b/pch.h
index adaf6dbc4e6..9763c9b7be7 100644
--- a/pch.h
+++ b/pch.h
@@ -37,7 +37,9 @@
#endif
#if defined(_WIN32)
-# define NOMINMAX
+# ifndef NOMINMAX
+# define NOMINMAX
+# endif
# include <winsock2.h> //this must be included before the first windows.h include
# include <ws2tcpip.h>
# include <wspiapi.h>