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.
This commit is contained in:
Steve Lhomme 2022-06-27 16:15:14 +02:00 committed by Hugo Beauzée-Luyssen
parent 3f4c1a2647
commit 4e6f2c60a3
1 changed files with 0 additions and 2 deletions

View File

@ -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)