mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-18 17:36:57 +00:00
updated minimum _WIN32_WINNT version to 0x0600
if_nametoindex requires minimum windows version vista, which is 0x0600
This commit is contained in:
parent
5501f19a0f
commit
e3fba7d447
@ -37,18 +37,15 @@
|
|||||||
#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 Vista or higher, required by if_nametoindex
|
||||||
#ifndef _WIN32_WINNT
|
#ifndef _WIN32_WINNT
|
||||||
#define _WIN32_WINNT 0x0501
|
#define _WIN32_WINNT 0x0600
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __MINGW32__
|
#if(_WIN32_WINNT >= 0x0600)
|
||||||
// Require Windows XP or higher with MinGW for getaddrinfo().
|
|
||||||
#if(_WIN32_WINNT >= 0x0501)
|
|
||||||
#else
|
#else
|
||||||
#undef _WIN32_WINNT
|
#undef _WIN32_WINNT
|
||||||
#define _WIN32_WINNT 0x0501
|
#define _WIN32_WINNT 0x0600
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user