diff options
author | Dan Albert <danalbert@google.com> | 2014-10-16 07:52:51 -0700 |
---|---|---|
committer | Hans Boehm <hboehm@google.com> | 2014-10-30 13:22:34 -0700 |
commit | 653263a96459c5c1811623bd84201c324a870280 (patch) | |
tree | 6f5bcdb04b85c90b94628befafa4f5c9aef2b8fa | |
parent | b0693ec58247c36a7427267783cb756cc055aed8 (diff) | |
download | bionic-653263a96459c5c1811623bd84201c324a870280.zip bionic-653263a96459c5c1811623bd84201c324a870280.tar.gz bionic-653263a96459c5c1811623bd84201c324a870280.tar.bz2 |
Only use <atomic> for C++11 and newer.
Any pre-C++11 clients of stdatomic.h that use libc++ are being forced
over to <atomic>, which they don't have the language support to use.
Bug:17736764
Change-Id: I62445c1f2541410a1569498c09433c7196635537
(cherry picked from commit 3ce0769aa5f9a991af1d167f730d987dd002253c)
-rw-r--r-- | libc/include/stdatomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |