Merge pull request #84 from GreatFruitOmsk/master

Fix missing include for if_nametoindex on Windows.
This commit is contained in:
Pieter Hintjens 2015-12-18 15:07:53 +01:00
commit e2a2175f15

View File

@ -37,9 +37,9 @@
#define NOMINMAX // Macros min(a,b) and max(a,b) #define NOMINMAX // Macros min(a,b) and max(a,b)
#endif #endif
// Set target version to Windows Server 2003, Windows XP/SP1 or higher. // Set target version to Windows Server 2008, Windows Vista or higher.
#ifndef _WIN32_WINNT #ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501 #define _WIN32_WINNT 0x0600
#endif #endif
#ifdef __MINGW32__ #ifdef __MINGW32__
@ -54,6 +54,7 @@
#include <winsock2.h> #include <winsock2.h>
#include <windows.h> #include <windows.h>
#include <mswsock.h> #include <mswsock.h>
#include <iphlpapi.h>
#if !defined __MINGW32__ #if !defined __MINGW32__
#include <Mstcpip.h> #include <Mstcpip.h>