aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/win32_port.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/port/win32_port.h')
-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 db7dc16932d..46d7b0035f8 100644
--- a/src/include/port/win32_port.h
+++ b/src/include/port/win32_port.h
@@ -28,6 +28,14 @@
#undef ERROR
/*
+ * VS2013 and later issue warnings about using the old Winsock API,
+ * which we don't really want to hear about.
+ */
+#ifdef _MSC_VER
+#define _WINSOCK_DEPRECATED_NO_WARNINGS
+#endif
+
+/*
* The MinGW64 headers choke if this is already defined - they
* define it themselves.
*/