From c48828f763672e45f0b1a20de41fb7ddd744462b Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Fri, 8 Mar 2013 12:32:38 +0200 Subject: atomic: Check for __sync_val_compare_and_swap instead of __sync_synchronize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not all gcc configurations have an implementation of all the atomic operations, and some gcc configurations have some atomic builtins implemented but not all. Thus check for the most essential function, whose presence should indicate that all others are present as well, since it can be used to implement all the other ones. Signed-off-by: Martin Storsjö --- libavutil/atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavutil/atomic.h') diff --git a/libavutil/atomic.h b/libavutil/atomic.h index 14d334f19c..61512e0fec 100644 --- a/libavutil/atomic.h +++ b/libavutil/atomic.h @@ -25,7 +25,7 @@ #if HAVE_MEMORYBARRIER #include "atomic_win32.h" -#elif HAVE_SYNC_SYNCHRONIZE +#elif HAVE_SYNC_VAL_COMPARE_AND_SWAP #include "atomic_gcc.h" #elif HAVE_MACHINE_RW_BARRIER #include "atomic_suncc.h" -- cgit v1.2.3