[vlc-commits] configure: link with synchronization library when building for win8+
Steve Lhomme
git at videolan.org
Fri Jun 19 08:25:49 CEST 2020
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jun 5 10:46:56 2020 +0200| [e55fba35b4e8a66d0f8d4304bb7111dd4ea4586d] | committer: Steve Lhomme
configure: link with synchronization library when building for win8+
That's what should be used when calling WaitOnAddress.
It's not part of the kernel32.dll anymore.
https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-waitonaddress
(cherry picked from commit 6cf8a7f8996b3684558bbac9177d09bedd912f91) (rebased)
rebased:
- the default windows version in this branch is XP, not Windows7
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=e55fba35b4e8a66d0f8d4304bb7111dd4ea4586d
---
configure.ac | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/configure.ac b/configure.ac
index 6ac9a9f256..1eb7d02631 100644
--- a/configure.ac
+++ b/configure.ac
@@ -235,6 +235,18 @@ case "${host_os}" in
],[
AC_DEFINE([_WIN32_WINNT], 0x0502, [Define to '0x0502' for Windows XP SP2 APIs.])
])
+ AC_MSG_CHECKING([if libsynchronization is needed])
+ AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
+ [[#if _WIN32_WINNT >= 0x0602
+ # error building for Win8+ and above
+ #endif
+ ]],[[;]])
+ ],[
+ AC_MSG_RESULT([no])
+ ],[
+ AC_MSG_RESULT([yes])
+ VLC_ADD_LIBS([libvlccore], [-lsynchronization])
+ ])
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