From e3fba7d447cc6826ed1b235e69156b9670ba0ef8 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 2 Feb 2016 22:32:16 +1100 Subject: [PATCH] updated minimum _WIN32_WINNT version to 0x0600 if_nametoindex requires minimum windows version vista, which is 0x0600 --- src/windows.hpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/windows.hpp b/src/windows.hpp index 3ced6adf..c87d2fe1 100644 --- a/src/windows.hpp +++ b/src/windows.hpp @@ -37,18 +37,15 @@ #define NOMINMAX // Macros min(a,b) and max(a,b) #endif -// Set target version to Windows Server 2003, Windows XP/SP1 or higher. +// Set target version to Windows Vista or higher, required by if_nametoindex #ifndef _WIN32_WINNT -#define _WIN32_WINNT 0x0501 +#define _WIN32_WINNT 0x0600 #endif -#ifdef __MINGW32__ -// Require Windows XP or higher with MinGW for getaddrinfo(). -#if(_WIN32_WINNT >= 0x0501) +#if(_WIN32_WINNT >= 0x0600) #else #undef _WIN32_WINNT -#define _WIN32_WINNT 0x0501 -#endif +#define _WIN32_WINNT 0x0600 #endif #include