summaryrefslogtreecommitdiff
path: root/pch.h
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2010-06-07 21:50:36 -0400
committerdwight <dwight@10gen.com>2010-06-07 21:50:36 -0400
commit4c51a62b5bddf47b8d2592028f1a6a6d834d65af (patch)
treebf017098aa5dadcd573116f66b41390e823bc8e3 /pch.h
parent001b28d3f6d188a8806de4ec7e50d54f749bfe62 (diff)
downloadmongo-4c51a62b5bddf47b8d2592028f1a6a6d834d65af.tar.gz
shell cleaning
Diffstat (limited to 'pch.h')
-rw-r--r--pch.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/pch.h b/pch.h
index 998678df49b..3482f053857 100644
--- a/pch.h
+++ b/pch.h
@@ -34,6 +34,12 @@
# define _CRT_SECURE_NO_WARNINGS
#endif
+#if defined(WIN32)
+// so you don't have to define this yourself as the code seems to use it...
+#undef _WIN32
+#define _WIN32
+#endif
+
#if defined(_WIN32)
# define NOMINMAX
# include <winsock2.h> //this must be included before the first windows.h include