From 3ce0769aa5f9a991af1d167f730d987dd002253c Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 16 Oct 2014 07:52:51 -0700 Subject: [PATCH] Only use for C++11 and newer. Any pre-C++11 clients of stdatomic.h that use libc++ are being forced over to , which they don't have the language support to use. Change-Id: I62445c1f2541410a1569498c09433c7196635537 --- libc/include/stdatomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/include/stdatomic.h b/libc/include/stdatomic.h index bcea85924..58cb1bc0e 100644 --- a/libc/include/stdatomic.h +++ b/libc/include/stdatomic.h @@ -33,7 +33,7 @@ #include -#if defined(__cplusplus) && defined(_USING_LIBCXX) +#if defined(__cplusplus) && __cplusplus >= 201103L && defined(_USING_LIBCXX) # ifdef __clang__ # if __has_feature(cxx_atomic) # define _STDATOMIC_HAVE_ATOMIC