commit | 90aa7e374f9000577cde64c4fb88c5dab8dac62e | [log] [tgz] |
---|---|---|
author | Dan Albert <danalbert@google.com> | Thu Oct 16 16:19:43 2014 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Oct 16 16:19:44 2014 +0000 |
tree | ae00fe52c3913725341cc1bf4f10c14e483eee81 | |
parent | 8bb12127e62c1fc4d9dc99ce9272008023c7c08e [diff] | |
parent | 3ce0769aa5f9a991af1d167f730d987dd002253c [diff] |
Merge "Only use <atomic> for C++11 and newer."
diff --git a/libc/include/stdatomic.h b/libc/include/stdatomic.h index bcea859..58cb1bc 100644 --- a/libc/include/stdatomic.h +++ b/libc/include/stdatomic.h
@@ -33,7 +33,7 @@ #include <sys/cdefs.h> -#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