From f7427076996575220d498e50a892c85cd9b79370 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 27 Jun 2020 00:31:58 +0200 Subject: [PATCH] Always use atomic in C++ --- m-atomic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m-atomic.h b/m-atomic.h index 1e218996..8c930aae 100644 --- a/m-atomic.h +++ b/m-atomic.h @@ -29,11 +29,11 @@ it is hard to use this header directly with a C++ compiler like g++ or MSVC. (See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60932 ). - clang++ has no issue with this header (except on MAC) + clang++ has no issue with this header but if someone includes + atomic from C++, there is incompatibility between atomic & stdatomic GCC 4.9 doesn't have a working implementation of 'atomic' */ #if defined(__cplusplus) && __cplusplus >= 201103L \ - && !(defined(__clang__) && !(defined(__APPLE__) && defined(__MACH__)) ) \ && !(defined(__GNUC__) && __GNUC__ < 5) /* NOTE: This is what the stdatomic.h header shall do in C++ mode. */