[vlc-devel] [PATCH] [RFC] configure: force WINNT_VERSION to 0x601 through -D

Jean-Baptiste Kempf jb at videolan.org
Thu Nov 30 03:06:46 CET 2017


What I don't get is why this is necessary, since it's already defined in
AH_TOP.
But else, it does not work for pollfd and inet_pton detection
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index c7360021f4..bb679caad2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -536,7 +536,7 @@ dnl Check for broken versions of mingw-runtime compatability library
     ])
 
     dnl force use of mingw provided c99 *printf over msvcrt
-    CPPFLAGS="${CPPFLAGS} -D__USE_MINGW_ANSI_STDIO=1"
+    CPPFLAGS="${CPPFLAGS} -D__USE_MINGW_ANSI_STDIO=1 -D_WIN32_WINNT=0x601"
 
     dnl Check for the need to include the mingwex lib for mingw32
     VLC_SAVE_FLAGS
-- 
2.15.0.531.g2ccb3012c9



More information about the vlc-devel mailing list