summaryrefslogtreecommitdiff
path: root/src/mongo/platform/windows_basic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/platform/windows_basic.h')
-rw-r--r--src/mongo/platform/windows_basic.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mongo/platform/windows_basic.h b/src/mongo/platform/windows_basic.h
new file mode 100644
index 00000000000..3a728981d33
--- /dev/null
+++ b/src/mongo/platform/windows_basic.h
@@ -0,0 +1,19 @@
+// windows_basic.h
+
+#pragma once
+
+#if defined(_WIN32)
+// for rand_s() usage:
+# define _CRT_RAND_S
+# ifndef NOMINMAX
+# define NOMINMAX
+# endif
+// tell windows.h not to include a bunch of headers
+// we don't need:
+# define WIN32_LEAN_AND_MEAN
+# include "targetver.h"
+# include <winsock2.h> //this must be included before the first windows.h include
+# include <ws2tcpip.h>
+# include <wspiapi.h>
+# include <windows.h>
+#endif