[FFmpeg-cvslog] configure: check for INIT_ONCE before enabling w32threads

James Almer git at videolan.org
Wed Apr 11 02:47:05 EEST 2018


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Apr  8 14:00:47 2018 -0300| [aea610b0d6497886860a894eb76a6cc7788c0fcd] | committer: 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: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aea610b0d6497886860a894eb76a6cc7788c0fcd
---

 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 4ea30762f4..8e6713d0b2 100755
--- 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 &&



More information about the ffmpeg-cvslog mailing list