From 727c2b4c7011c252fd1973358629cccbfecfc25d Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 24 Sep 2016 15:38:22 +0300 Subject: Fix compilation warnings on MinGW with the latest runtime reported by Marc de Bourget . --- pc/socket.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pc/socket.h') 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 -#define _WIN32_WINNT 0x501 +#if !defined _WIN32_WINNT || _WIN32_WINNT < 0x501 +# undef _WIN32_WINNT +# define _WIN32_WINNT 0x501 +#endif #include #include -- cgit v1.2.3