[vlc-commits] Allow overriding _WIN32_WINNT with environment variable

Rafaël Carré git at videolan.org
Tue Jan 22 14:53:26 CET 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Jan 22 14:52:27 2013 +0100| [e35bd0a3e01c6f6b9f4e3bd4045b2e556bc33ce1] | committer: Rafaël Carré

Allow overriding _WIN32_WINNT with environment variable

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

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

diff --git a/configure.ac b/configure.ac
index 40dcc71..bff1948 100644
--- a/configure.ac
+++ b/configure.ac
@@ -205,7 +205,8 @@ case "${host_os}" in
   *mingw32* | *cygwin* | *wince* | *mingwce*)
     AC_CHECK_TOOL(WINDRES, windres, :)
     AC_CHECK_TOOL(OBJCOPY, objcopy, :)
-    AC_DEFINE([_WIN32_WINNT], 0x0502, [Define to '0x0502' for Windows XP SP2 APIs.])
+    test -z "$_WIN32_WINNT" && _WIN32_WINNT=0x0502
+    AC_DEFINE_UNQUOTED([_WIN32_WINNT], ${_WIN32_WINNT}, [Windows API level])
     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