[FFmpeg-devel] [PATCH] configure: make the check for stdatomic.h stricter
James Almer
jamrial at gmail.com
Wed Dec 28 02:55:42 EET 2016
ICC stdatomic.h implementation seems to be incomplete or broken,
missing the ATOMIC_VAR_INIT() macro.
Should fix ticket #6049
Signed-off-by: James Almer <jamrial at gmail.com>
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index d723b8e..56a0b65 100755
--- a/configure
+++ b/configure
@@ -5623,7 +5623,7 @@ check_header asm/types.h
# it seems there are versions of clang in some distros that try to use the
# gcc headers, which explodes for stdatomic
# so we also check that atomics actually work here
-check_builtin stdatomic_h stdatomic.h "atomic_int foo; atomic_store(&foo, 0)"
+check_builtin stdatomic_h stdatomic.h "atomic_int foo, bar = ATOMIC_VAR_INIT(-1); atomic_store(&foo, 0)"
check_lib2 "windows.h shellapi.h" CommandLineToArgvW -lshell32
check_lib2 "windows.h wincrypt.h" CryptGenRandom -ladvapi32
--
2.10.2
More information about the ffmpeg-devel
mailing list