[vlc-commits] Don't force a lower version of _WIN32_WINNT
Martin Storsjö
git at videolan.org
Sat Mar 17 23:46:47 CET 2018
npapi-vlc | branch: master | Martin Storsjö <martin at martin.st> | Sun Mar 18 00:46:21 2018 +0200| [029e3c6513121d540d2aea709641e1424b0fb714] | committer: Martin Storsjö
Don't force a lower version of _WIN32_WINNT
> https://code.videolan.org/videolan/npapi-vlc/commit/029e3c6513121d540d2aea709641e1424b0fb714
---
configure.ac | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 54e6dec..baa0ed7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -98,7 +98,13 @@ case "${host_os}" in
*mingw32*)
SYS=mingw32
AC_CHECK_TOOL(WINDRES, windres, :)
- AC_DEFINE([_WIN32_WINNT], 0x0501, [Define to '0x0501' for Windows XP APIs.])
+ AC_TRY_COMPILE([#include <windows.h>], [
+ #if _WIN32_WINNT >= 0x0501
+ #error new enough by default
+ #endif
+ ], [
+ AC_DEFINE([_WIN32_WINNT], 0x0501, [Define to '0x0501' for Windows XP APIs.])
+ ])
AC_DEFINE([_WIN32_IE], 0x0600, [Define to '0x0600' for IE6.0 APIs.])
AC_DEFINE([_WIN32], 1, [Define to 1 if targetting Windows.])
CC="$CC -static-libgcc"
More information about the vlc-commits
mailing list