diff --git a/src/ip_utils.cpp b/src/ip_utils.cpp index 76c089c37e1ceb21219d57b86b31ec2d84a99ca3..4b2fd646de3f8d22a6b2f1dfba2572fa1df8ea9f 100644 --- a/src/ip_utils.cpp +++ b/src/ip_utils.cpp @@ -247,7 +247,11 @@ ip_utils::getLocalNameservers() { std::vector<IpAddr> res; #if defined __ANDROID__ || defined _WIN32 || TARGET_OS_IPHONE -#warning "Not implemented" +#ifdef _MSC_VER +#pragma message (__FILE__ "(" STR2(__LINE__) ") : -NOTE- " "Not implemented") +#else +#warning "Not implemented" +#endif #else if (not (_res.options & RES_INIT)) res_init(); diff --git a/src/ip_utils.h b/src/ip_utils.h index 8076bcb78d11fc1141e704d3752b29795b015e4f..8b9364e2c7fee380068031170e8a2f377834d39c 100644 --- a/src/ip_utils.h +++ b/src/ip_utils.h @@ -32,6 +32,7 @@ extern "C" { #include <ciso646> // fix windows compiler bug #ifdef _WIN32 + #define _WIN32_WINNT 0x0A00 #include <ws2tcpip.h> //define in mingw