[vlc-commits] [Git][videolan/vlc][master] 2 commits: inet_pton: don't redefine EAFNOSUPPORT for Win32

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Thu Jun 30 13:34:43 UTC 2022



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
4e6f2c60 by Steve Lhomme at 2022-06-30T12:58:50+00:00
inet_pton: don't redefine EAFNOSUPPORT for Win32

It's officially supported by the Windows SDK. Callers of these POSIX API's
don't expect to check errno is WSAEAFNOSUPPORT.

- - - - -
01fd40f5 by Steve Lhomme at 2022-06-30T12:58:50+00:00
udp: don't redefine EAFNOSUPPORT for Win32

It's officially supported by the Windows SDK. Callers of these POSIX API's
don't expect to check errno is WSAEAFNOSUPPORT.

- - - - -


2 changed files:

- compat/inet_pton.c
- src/network/udp.c


Changes:

=====================================
compat/inet_pton.c
=====================================
@@ -31,8 +31,6 @@
 #elif defined(_WIN32)
 # include <winsock2.h>
 # include <ws2tcpip.h>
-# undef EAFNOSUPPORT
-# define EAFNOSUPPORT WSAEAFNOSUPPORT
 #endif
 
 int inet_pton (int af, const char *src, void *dst)


=====================================
src/network/udp.c
=====================================
@@ -38,8 +38,6 @@
 #include <vlc_network.h>
 
 #ifdef _WIN32
-#   undef EAFNOSUPPORT
-#   define EAFNOSUPPORT WSAEAFNOSUPPORT
 #   if defined(__MINGW64_VERSION_MAJOR) && __MINGW64_VERSION_MAJOR < 6
 #    include <wincrypt.h>
 #   endif



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/3f4c1a2647c2d32f0c00f31a092cd52c7d24cdf0...01fd40f5d6e0a5c0cef69ebbbb4f028a0096a812

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/3f4c1a2647c2d32f0c00f31a092cd52c7d24cdf0...01fd40f5d6e0a5c0cef69ebbbb4f028a0096a812
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list