Skip to content
Snippets Groups Projects
Commit 77c14505 authored by Andreas Traczyk's avatar Andreas Traczyk Committed by gerrit2
Browse files

ip_utils: replace #warning and define IN6_IS_ADDR_UNSPECIFIED

- Adds #pragma message to replace #warning directive

- Defines _WIN32_WINNT to windows 10 (0x0A00) which allows
  IN6_IS_ADDR_UNSPECIFIED to be defined in ws2tcpip.h

Change-Id: Id2406815830f24bbed744cbaca98dbd4fbcf515d
Tuleap: #790
parent 56cd32d8
No related branches found
No related tags found
No related merge requests found
...@@ -247,7 +247,11 @@ ip_utils::getLocalNameservers() ...@@ -247,7 +247,11 @@ ip_utils::getLocalNameservers()
{ {
std::vector<IpAddr> res; std::vector<IpAddr> res;
#if defined __ANDROID__ || defined _WIN32 || TARGET_OS_IPHONE #if defined __ANDROID__ || defined _WIN32 || TARGET_OS_IPHONE
#ifdef _MSC_VER
#pragma message (__FILE__ "(" STR2(__LINE__) ") : -NOTE- " "Not implemented")
#else
#warning "Not implemented" #warning "Not implemented"
#endif
#else #else
if (not (_res.options & RES_INIT)) if (not (_res.options & RES_INIT))
res_init(); res_init();
......
...@@ -32,6 +32,7 @@ extern "C" { ...@@ -32,6 +32,7 @@ extern "C" {
#include <ciso646> // fix windows compiler bug #include <ciso646> // fix windows compiler bug
#ifdef _WIN32 #ifdef _WIN32
#define _WIN32_WINNT 0x0A00
#include <ws2tcpip.h> #include <ws2tcpip.h>
//define in mingw //define in mingw
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment