diff options
author | James Almer <jamrial@gmail.com> | 2018-04-08 14:00:47 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-04-10 20:45:17 -0300 |
commit | aea610b0d6497886860a894eb76a6cc7788c0fcd (patch) | |
tree | 735d67a3debe56355d01088ab663cbd33fcf13c3 | |
parent | 234a5e08313c6b8b0774796dfa1f285a3f877d14 (diff) | |
download | ffmpeg-aea610b0d6497886860a894eb76a6cc7788c0fcd.tar.gz |
configure: check for INIT_ONCE before enabling w32threads
Should fix compilation wiht some old mingw-w64 builds that
don't seem to define it.
Signed-off-by: James Almer <jamrial@gmail.com>
-rwxr-xr-x | configure | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -5886,6 +5886,7 @@ check_cpp_condition winrt windows.h "!WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_D if ! disabled w32threads && ! enabled pthreads; then check_func_headers "windows.h process.h" _beginthreadex && check_type "windows.h" CONDITION_VARIABLE && + check_type "windows.h" INIT_ONCE && enable w32threads || disable w32threads if ! enabled w32threads && enabled winrt; then check_func_headers "windows.h" CreateThread && |