[vlc-commits] Allow overriding _WIN32_WINNT through CPPFLAGS

Rafaël Carré git at videolan.org
Tue Jan 22 15:13:45 CET 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Jan 22 15:12:39 2013 +0100| [7d575ec68e3c562306b40e8bdfa9823fdea73123] | committer: Rafaël Carré

Allow overriding _WIN32_WINNT through CPPFLAGS

Suggested-by: Rémi Denis-Courmont

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7d575ec68e3c562306b40e8bdfa9823fdea73123
---

 configure.ac |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index bff1948..9192c10 100644
--- a/configure.ac
+++ b/configure.ac
@@ -205,8 +205,9 @@ case "${host_os}" in
   *mingw32* | *cygwin* | *wince* | *mingwce*)
     AC_CHECK_TOOL(WINDRES, windres, :)
     AC_CHECK_TOOL(OBJCOPY, objcopy, :)
-    test -z "$_WIN32_WINNT" && _WIN32_WINNT=0x0502
-    AC_DEFINE_UNQUOTED([_WIN32_WINNT], ${_WIN32_WINNT}, [Windows API level])
+    AH_TOP([#if defined(WIN32) && !defined(_WIN32_WINNT)])
+    AH_TOP([# define _WIN32_WINNT 0x0502 /* Windows XP SP2 */])
+    AH_TOP([#endif])
     AC_DEFINE([_WIN32_IE], 0x0600, [Define to '0x0600' for IE 6.0 (and shell) APIs.])
     AC_DEFINE([_UNICODE], [1], [Define to 1 for Unicode (Wide Chars) APIs.])
     AC_DEFINE([UNICODE], [1], [Define to 1 for Unicode (Wide Chars) APIs.])



More information about the vlc-commits mailing list