Commit 596fd240 authored by Michael's avatar Michael

added ZMQ_HAVE_WINDOWS check to _WIN32_WINNT usage

parent b98b1495
...@@ -158,7 +158,7 @@ int main (void) ...@@ -158,7 +158,7 @@ int main (void)
ip4addr.sin_family = AF_INET; ip4addr.sin_family = AF_INET;
ip4addr.sin_port = htons(9003); ip4addr.sin_port = htons(9003);
#if (_WIN32_WINNT < 0x0600) #if (ZMQ_HAVE_WINDOWS and _WIN32_WINNT < 0x0600)
ip4addr.sin_addr.s_addr = inet_addr ("127.0.0.1"); ip4addr.sin_addr.s_addr = inet_addr ("127.0.0.1");
#else #else
inet_pton(AF_INET, "127.0.0.1", &ip4addr.sin_addr); inet_pton(AF_INET, "127.0.0.1", &ip4addr.sin_addr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment