summaryrefslogtreecommitdiff
path: root/libavutil/atomic.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-03-08 12:32:38 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-03-12 10:41:02 +0100
commitc48828f763672e45f0b1a20de41fb7ddd744462b (patch)
treef1d4afdd4b5285e18a6b54c7f49b098838f972a3 /libavutil/atomic.h
parentc536253854eadf9ebf5aa0506657f9c24e522e57 (diff)
atomic: Check for __sync_val_compare_and_swap instead of __sync_synchronize
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ö <martin@martin.st>
Diffstat (limited to 'libavutil/atomic.h')
-rw-r--r--libavutil/atomic.h2
1 files changed, 1 insertions, 1 deletions
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"