aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/port/win32_port.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/port/win32_port.h b/src/include/port/win32_port.h
index 093a009aee5..c1c4831595a 100644
--- a/src/include/port/win32_port.h
+++ b/src/include/port/win32_port.h
@@ -43,6 +43,14 @@
#define _WINSOCKAPI_
#endif
+/*
+ * windows.h includes a lot of other headers, slowing down compilation
+ * significantly. WIN32_LEAN_AND_MEAN reduces that a bit. It'd be better to
+ * remove the include of windows.h (as well as indirect inclusions of it) from
+ * such a central place, but until then...
+ */
+#define WIN32_LEAN_AND_MEAN
+
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>