diff mbox

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

Message ID 20180408170047.11636-1-jamrial@gmail.com
State Accepted
Commit aea610b0d6497886860a894eb76a6cc7788c0fcd
Headers show

Commit Message

James Almer April 8, 2018, 5 p.m. UTC
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 | 1 +
 1 file changed, 1 insertion(+)

Comments

James Almer April 10, 2018, 11:47 p.m. UTC | #1
On 4/8/2018 2:00 PM, James Almer wrote:
> 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 | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/configure b/configure
> index 08d6fc5983..3bae584ab0 100755
> --- a/configure
> +++ b/configure
> @@ -5883,6 +5883,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 &&
> 

Pushed.
diff mbox

Patch

diff --git a/configure b/configure
index 08d6fc5983..3bae584ab0 100755
--- a/configure
+++ b/configure
@@ -5883,6 +5883,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 &&