[vlc-commits] vlc_atomic: work-around clang issue #11174
Felix Paul Kühne
git at videolan.org
Sun Nov 11 15:25:49 CET 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Nov 11 15:16:45 2012 +0100| [82858095f56672ed2cd6bc8e075e22b2f03206a7] | committer: 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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=82858095f56672ed2cd6bc8e075e22b2f03206a7
---
include/vlc_atomic.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/vlc_atomic.h b/include/vlc_atomic.h
index 1a05d45..5388aa9 100644
--- a/include/vlc_atomic.h
+++ b/include/vlc_atomic.h
@@ -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 ***/
More information about the vlc-commits
mailing list