commit | 789096a71d65b1bead14286bf508095abb01151a | [log] [tgz] |
---|---|---|
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | Tue Apr 03 19:40:11 2018 +0200 |
committer | Simon Butcher <simon.butcher@arm.com> | Fri Jun 08 16:26:53 2018 +0100 |
tree | 51631463a7fc6b16696fccb4775662f891d3d4d0 | |
parent | fcc7a62bb13032e8eb2b29ba8eb1535819b9c053 [diff] |
Only redefine _WIN32_WINNT macro when < 0x0501
diff --git a/library/net.c b/library/net.c index e3aa2a9..e8123cc 100644 --- a/library/net.c +++ b/library/net.c
@@ -34,11 +34,12 @@ #if (defined(_WIN32) || defined(_WIN32_WCE)) && !defined(EFIX64) && \ !defined(EFI32) -#ifdef _WIN32_WINNT +#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0501) #undef _WIN32_WINNT -#endif /* Enables getaddrinfo() & Co */ #define _WIN32_WINNT 0x0501 +#endif + #include <ws2tcpip.h> #include <winsock2.h>