mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 18:55:10 +01:00
added ZMQ_HAVE_WINDOWS check to _WIN32_WINNT usage
This commit is contained in:
parent
595181d301
commit
b98b1495af
@ -245,7 +245,7 @@ int main (void)
|
|||||||
|
|
||||||
ip4addr.sin_family = AF_INET;
|
ip4addr.sin_family = AF_INET;
|
||||||
ip4addr.sin_port = htons (9998);
|
ip4addr.sin_port = htons (9998);
|
||||||
#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);
|
||||||
|
Loading…
Reference in New Issue
Block a user