[vlc-commits] vlc_atomic: work-around clang issue #11174

Felix Paul Kühne git at videolan.org
Sun Nov 11 15:17:18 CET 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Nov 11 15:16:45 2012 +0100| [89f09798027b4d19a9e7d97db8960fc8cab08f26] | 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=89f09798027b4d19a9e7d97db8960fc8cab08f26
---

 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..0576efa 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__)
 
 /*** Intel/GCC atomics ***/
 



More information about the vlc-commits mailing list