configure: check for INIT_ONCE before enabling w32threads
authorJames Almer <jamrial@gmail.com>
Sun, 8 Apr 2018 17:00:47 +0000 (14:00 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 10 Apr 2018 23:45:17 +0000 (20:45 -0300)
Should fix compilation wiht some old mingw-w64 builds that
don't seem to define it.

Signed-off-by: James Almer <jamrial@gmail.com>
configure

index 4ea3076..8e6713d 100755 (executable)
--- a/configure
+++ b/configure
@@ -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 &&