Problem: build targeting Windows XP is broken

Solution: fix build issues
This commit is contained in:
Simon Giesecke
2019-10-19 13:38:33 +02:00
parent 92e3226869
commit 7f43e7ff75
6 changed files with 17 additions and 12 deletions

View File

@@ -38,7 +38,7 @@
#include <crtdbg.h>
#pragma warning(disable : 4996)
// iphlpapi is needed for if_nametoindex (not on Windows XP)
#if !defined ZMQ_HAVE_WINDOWS_TARGET_XP
#if _WIN32_WINNT > _WIN32_WINNT_WINXP
#pragma comment(lib, "iphlpapi")
#endif
#endif