]> git.sesse.net Git - vlc/commitdiff
Win32: Use _WIN32_WINNT 0x501 everywhere
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 8 Jun 2011 15:36:47 +0000 (17:36 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 8 Jun 2011 15:36:47 +0000 (17:36 +0200)
configure.ac
modules/stream_out/standard.c

index 785462521f117b8ab17062f0fd718200d1e7b24e..1f782656f63a6c3896629a55993b869c76e82352 100644 (file)
@@ -294,21 +294,19 @@ case "${host_os}" in
   *mingw32* | *cygwin* | *wince* | *mingwce*)
     AC_CHECK_TOOL(WINDRES, windres, :)
     AC_CHECK_TOOL(OBJCOPY, objcopy, :)
+    AC_DEFINE([_WIN32_WINNT], 0x0501, [Define to '0x0501' for Windows XP APIs.])
 
     case "${host_os}" in
       *wince* | *mingwce* | *mingw32ce*)
         SYS=mingwce
         dnl Sadly CeGCC still needs non-wince macros
-        AC_DEFINE([_WIN32_WINNT], 0x0501, [Define to '0x0500' for Windows 2000 APIs.])
         ;;
       *mingw32*)
         SYS=mingw32
-        AC_DEFINE([_WIN32_WINNT], 0x0501, [Define to '0x0500' for Windows XP APIs.])
         ;;
       *cygwin*)
         dnl Check if we are using the mno-cygwin mode in which case we are
         dnl actually dealing with a mingw32 compiler.
-        AC_DEFINE([_WIN32_WINNT], 0x0501, [Define to '0x0501' for Windows XP APIs.])
         AC_EGREP_CPP(yes,
             [#ifdef WIN32
              yes
index 45580024ae984fccd5b91f15ee16885d2d17a7c4..59fc401fdac378fda698637c8bd69ea8470ddd62 100644 (file)
 # include "config.h"
 #endif
 
-#ifndef _WIN32_WINNT
-# define _WIN32_WINNT 0x0500
-#endif
-
 #include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_sout.h>