summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorwang-bin <wbsecg1@gmail.com>2015-09-29 18:11:03 +0800
committerMatt Oliver <protogonoi@gmail.com>2015-10-16 00:54:57 +1100
commit0861862b897ade9e62064f532f3b0a957ee7a0d8 (patch)
tree31a4529e5bc9ecfa7e668a0cb05249c04a72dd32 /configure
parent909907948846dedf57a730a4d115d04d1117f9e5 (diff)
winrt: multithreading support
_beginthreadex is for desktop only. CreateThread is available for windows store apps on windows (and phone) 8.1 and later. http://msdn.microsoft.com/en-us/library/ms682453%28VS.85%29.aspx Signed-off-by: Matt Oliver <protogonoi@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index 52a65a4876..386805e20f 100755
--- a/configure
+++ b/configure
@@ -1904,6 +1904,7 @@ HAVE_LIST="
dos_paths
dxva2api_cobj
dxva2_lib
+ winrt
libc_msvcrt
libdc1394_1
libdc1394_2
@@ -5236,9 +5237,15 @@ check_type "va/va.h" "VAPictureParameterBufferHEVC"
check_type "vdpau/vdpau.h" "VdpPictureInfoHEVC"
+check_cpp_condition windows.h "!WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)" && enable winrt || disable winrt
+
if ! disabled w32threads && ! enabled pthreads; then
check_func_headers "windows.h process.h" _beginthreadex &&
enable w32threads || disable w32threads
+ if ! enabled w32threads && enabled winrt; then
+ check_func_headers "windows.h" CreateThread &&
+ enable w32threads || disable w32threads
+ fi
fi
# check for some common methods of building with pthread support