]> git.sesse.net Git - vlc/commitdiff
CeGCC headers depend on _WIN32_WINNT
authorGeoffroy Couprie <geo.couprie@gmail.com>
Sun, 2 Nov 2008 18:59:05 +0000 (19:59 +0100)
committerGeoffroy Couprie <geo.couprie@gmail.com>
Tue, 4 Nov 2008 07:23:08 +0000 (08:23 +0100)
configure.ac

index f3a79c062b2bbac702909c05b5b6fec3549933a3..74459252f06aeeee3c70b24b8c33d1662eedb47c 100644 (file)
@@ -58,7 +58,6 @@ dnl
 AC_PROG_CC_C99
 AC_USE_SYSTEM_EXTENSIONS
 AC_DEFINE([_FORTIFY_SOURCE], 2, [Define to '2' to get glibc warnings.])
-AC_DEFINE([_WIN32_WINNT], 0x0500, [Define to '0x0500' for Windows 2000 APIs.])
 
 AM_PROG_CC_C_O
 AC_PROG_CXX
@@ -302,13 +301,17 @@ case "${host_os}" in
     case "${host_os}" in
       *wince* | *mingwce* | *mingw32ce* | *pe*)
         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], 0x0500, [Define to '0x0500' for Windows 2000 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], 0x0500, [Define to '0x0500' for Windows 2000 APIs.])
         AC_EGREP_CPP(yes,
             [#ifdef WIN32
              yes