It seems GNUC is force to 4 for APPLE/CLANG

This commit is contained in:
Patrick Pelissier committed 2020-06-27 01:00:46 +02:00
1 parent f742707699
commit f6483cbb30
1 file changed
+1 -1
+1 -1
View File
@@ -34,7 +34,7 @@
GCC 4.9 doesn't have a working implementation of 'atomic'
*/
#if defined(__cplusplus) && __cplusplus >= 201103L \
&& !(defined(__GNUC__) && __GNUC__ < 5)
&& !(defined(__GNUC__) && __GNUC__ < 5 && !defined(__APPLE__))
/* NOTE: This is what the stdatomic.h header shall do in C++ mode. */
#include <atomic>