Small patch to change mbedtls _WIN32_WINNT

This commit is contained in:
Fabio Alessandrelli
2018-03-28 17:31:59 +02:00
parent febec68763
commit 7e776f5b2e
2 changed files with 7 additions and 2 deletions

View File

@ -45,11 +45,14 @@
#if (defined(_WIN32) || defined(_WIN32_WCE)) && !defined(EFIX64) && \
!defined(EFI32)
#ifdef _WIN32_WINNT
/* GODOT ADDITION */
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0501)
#undef _WIN32_WINNT
#endif
/* Enables getaddrinfo() & Co */
#define _WIN32_WINNT 0x0501
#endif
/* END GODOT ADDITION */
#include <ws2tcpip.h>
#include <winsock2.h>