mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-08 11:35:27 +00:00
Only redefine _WIN32_WINNT macro when < 0x0501
This commit is contained in:
parent
fcc7a62bb1
commit
789096a71d
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue