win32: Fix minimum Windows version for inet_{ntop,pton}
authorPatrick Gaskin <patrick@pgaskin.net>
Sun, 30 May 2021 19:24:26 +0000 (15:24 -0400)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Wed, 16 Jun 2021 09:05:58 +0000 (09:05 +0000)
https://docs.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-inet_ntop#requirements

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/546>

src/pulsecore/arpa-inet.c
src/pulsecore/arpa-inet.h

index f917286..fb34299 100644 (file)
@@ -21,7 +21,7 @@
 #include <config.h>
 #endif
 
-#if !defined(HAVE_ARPA_INET_H) && defined(OS_IS_WIN32) && (_WIN32_WINNT <= 0x0600)
+#if !defined(HAVE_ARPA_INET_H) && defined(OS_IS_WIN32) && (_WIN32_WINNT < 0x0600)
 
 #include <errno.h>
 
index a3bc840..19f3be8 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <pulsecore/socket.h>
 
-#if (_WIN32_WINNT <= 0x0600)
+#if (_WIN32_WINNT < 0x0600)
 
 const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt);