1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Improvements to scons defined WINVER/_WIN32_WINNT

(cherry picked from commit 65483d57bf)
This commit is contained in:
Fabio Alessandrelli
2016-11-03 05:20:26 +01:00
committed by Rémi Verschelde
parent 8a5596322d
commit 9c8ecb45f8
4 changed files with 12 additions and 10 deletions

View File

@@ -3,11 +3,11 @@
#include <string.h>
#ifdef WINDOWS_ENABLED
// Workaround mingw missing flags!
#ifndef IPV6_V6ONLY
#define IPV6_V6ONLY 27
#endif
#if defined(__MINGW32__ ) && (!defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 4)
// Workaround for mingw-w64 < 4.0
#ifndef IPV6_V6ONLY
#define IPV6_V6ONLY 27
#endif
#endif
// helpers for sockaddr -> IP_Address and back, should work for posix and winsock. All implementations should use this