Commit c5f80f5b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

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

parent 66842e08
......@@ -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;
......
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