mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 15:41:05 +08:00
[tests/testutil.hpp] Problem: wrong windows.hpp path
Solution: correct path is ../src/windows.hpp. Also added automatic linking of iphlpapi library if required and using MSVC
This commit is contained in:
parent
0b01cc1ebc
commit
7fdb167732
@ -51,10 +51,14 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if defined _WIN32
|
#if defined _WIN32
|
||||||
# include "windows.hpp"
|
# include "../src/windows.hpp"
|
||||||
# if defined _MSC_VER
|
# if defined _MSC_VER
|
||||||
# include <crtdbg.h>
|
# include <crtdbg.h>
|
||||||
# pragma warning(disable:4996)
|
# pragma warning(disable:4996)
|
||||||
|
// iphlpapi is needed for if_nametoindex (not on Windows XP)
|
||||||
|
# if !defined ZMQ_HAVE_WINDOWS_TARGET_XP
|
||||||
|
# pragma comment(lib,"iphlpapi")
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# include <pthread.h>
|
# include <pthread.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user