vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | 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;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to