Commit aea610b0 authored by James Almer's avatar James Almer

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: 's avatarJames Almer <jamrial@gmail.com>
parent 234a5e08
...@@ -5886,6 +5886,7 @@ check_cpp_condition winrt windows.h "!WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_D ...@@ -5886,6 +5886,7 @@ check_cpp_condition winrt windows.h "!WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_D
if ! disabled w32threads && ! enabled pthreads; then if ! disabled w32threads && ! enabled pthreads; then
check_func_headers "windows.h process.h" _beginthreadex && check_func_headers "windows.h process.h" _beginthreadex &&
check_type "windows.h" CONDITION_VARIABLE && check_type "windows.h" CONDITION_VARIABLE &&
check_type "windows.h" INIT_ONCE &&
enable w32threads || disable w32threads enable w32threads || disable w32threads
if ! enabled w32threads && enabled winrt; then if ! enabled w32threads && enabled winrt; then
check_func_headers "windows.h" CreateThread && check_func_headers "windows.h" CreateThread &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment