You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Windows: Define _WIN32_WINRT to 0x0600 (Vista)
Passed as a compiler define to be sure it is always define before windows.h is loaded. This means that Godot officially requires Vista API or later, it will not work on Windows XP or earlier. Also fix a bogus check for Windows 7 API.
This commit is contained in:
@@ -37,19 +37,13 @@
|
||||
#ifndef AI_ADDRCONFIG
|
||||
#define AI_ADDRCONFIG 0x00000400
|
||||
#endif
|
||||
#ifdef UWP_ENABLED
|
||||
#include <ws2tcpip.h>
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
#else
|
||||
#define WINVER 0x0600
|
||||
#include <ws2tcpip.h>
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
#include <iphlpapi.h>
|
||||
#endif
|
||||
#ifndef UWP_ENABLED
|
||||
#include <iphlpapi.h>
|
||||
#endif
|
||||
#else
|
||||
#include <netdb.h>
|
||||
#ifdef ANDROID_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user