[vlc-commits] Use C++11 atomic only on gcc 5.0+ for now

Jean-Baptiste Kempf git at videolan.org
Tue May 26 15:18:53 CEST 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue May 26 15:12:34 2015 +0200| [c5f80f5bc4cb498c8eb7469650437e92ae6d085a] | committer: Jean-Baptiste Kempf

Use C++11 atomic only on gcc 5.0+ for now

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c5f80f5bc4cb498c8eb7469650437e92ae6d085a
---

 include/vlc_atomic.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/vlc_atomic.h b/include/vlc_atomic.h
index dbe7bf9..aab2ead 100644
--- a/include/vlc_atomic.h
+++ b/include/vlc_atomic.h
@@ -32,7 +32,8 @@
 /*** Native C11 atomics ***/
 #  include <stdatomic.h>
 
-# elif defined (__cplusplus) && (__cplusplus >= 201103L)
+# elif defined (__cplusplus) && (__cplusplus >= 201103L) \
+  && VLC_GCC_VERSION(5, 0)
 #   include <atomic>
 using std::atomic_is_lock_free;
 using std::atomic_init;



More information about the vlc-commits mailing list