[vlc-devel] commit: CeGCC headers depend on _WIN32_WINNT (Geoffroy Couprie )
git version control
git at videolan.org
Tue Nov 4 08:23:27 CET 2008
vlc | branch: master | Geoffroy Couprie <geo.couprie at gmail.com> | Sun Nov 2 19:59:05 2008 +0100| [d041136e29a08c2e89367455dfae1961d2cdb768] | committer: Geoffroy Couprie
CeGCC headers depend on _WIN32_WINNT
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d041136e29a08c2e89367455dfae1961d2cdb768
---
configure.ac | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index f3a79c0..7445925 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
More information about the vlc-devel
mailing list