aboutsummaryrefslogtreecommitdiffstats
path: root/pc/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'pc/socket.h')
-rw-r--r--pc/socket.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/pc/socket.h b/pc/socket.h
index 41dd23cf..d7b890dd 100644
--- a/pc/socket.h
+++ b/pc/socket.h
@@ -7,7 +7,10 @@
#include <io.h>
-#define _WIN32_WINNT 0x501
+#if !defined _WIN32_WINNT || _WIN32_WINNT < 0x501
+# undef _WIN32_WINNT
+# define _WIN32_WINNT 0x501
+#endif
#include <winsock2.h>
#include <ws2tcpip.h>