diff options
author | Martin Storsjö <martin@martin.st> | 2013-03-08 12:32:38 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-12 10:41:02 +0100 |
commit | c48828f763672e45f0b1a20de41fb7ddd744462b (patch) | |
tree | f1d4afdd4b5285e18a6b54c7f49b098838f972a3 /libavutil/atomic.h | |
parent | c536253854eadf9ebf5aa0506657f9c24e522e57 (diff) | |
download | ffmpeg-c48828f763672e45f0b1a20de41fb7ddd744462b.tar.gz |
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.h | 2 |
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" |