Browse Source

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.
pull/136/head
Steve Lhomme 4 years ago
committed by Hugo Beauzée-Luyssen
parent
commit
4e6f2c60a3
  1. 2
      compat/inet_pton.c

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

Loading…
Cancel
Save