]> git.sesse.net Git - vlc/blobdiff - compat/inet_pton.c
direct3d11: implement the pixel format fallback
[vlc] / compat / inet_pton.c
index 8e0c4c1a83dd46cf305919babdc0f3fbe5d4045b..fb825c20a4fc4e404a09d7a7d1f831725a14393f 100644 (file)
 #include <errno.h>
 
 #include <sys/types.h>
-#ifndef WIN32
+#ifndef _WIN32
 # include <sys/socket.h>
 #else
 # include <winsock2.h>
+# undef EAFNOSUPPORT
 # define EAFNOSUPPORT WSAEAFNOSUPPORT
 #endif