Commit 82858095 authored by Felix Paul Kühne's avatar Felix Paul Kühne

vlc_atomic: work-around clang issue #11174

__GCC_HAVE_SYNC_COMPARE_AND_SWAP_ is neither defined nor is an equivalent macro available. However, the protected features are supported.
parent 3690c9e2
......@@ -32,7 +32,7 @@
/*** Native C11 atomics ***/
# include <stdatomic.h>
# elif defined (__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
# elif defined (__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) || (defined (__clang__) && (defined (__x86_64__) || defined (__i386__)))
/*** Intel/GCC atomics ***/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment