mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 19:03:59 +08:00
atomic_base.h: Avoid including <stdbool.h>.
2014-10-24 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/atomic_base.h: Avoid including <stdbool.h>. * include/std/atomic: When __cplusplus < 201103L skip the rest of the header. * testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc: Adjust. From-SVN: r216667
This commit is contained in:
parent
d81230b555
commit
709def90a4
@ -1,3 +1,10 @@
|
||||
2014-10-24 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* include/bits/atomic_base.h: Avoid including <stdbool.h>.
|
||||
* include/std/atomic: When __cplusplus < 201103L skip the rest of
|
||||
the header.
|
||||
* testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc: Adjust.
|
||||
|
||||
2014-10-23 François Dumont <fdumont@gcc.gnu.org>
|
||||
|
||||
* testsuite/25_algorithms/make_heap/complexity.cc: Add missing test
|
||||
|
@ -33,7 +33,6 @@
|
||||
#pragma GCC system_header
|
||||
|
||||
#include <bits/c++config.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <bits/atomic_lockfree_defines.h>
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
|
||||
#if __cplusplus < 201103L
|
||||
# include <bits/c++0x_warning.h>
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include <bits/atomic_base.h>
|
||||
|
||||
@ -1129,4 +1129,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||
_GLIBCXX_END_NAMESPACE_VERSION
|
||||
} // namespace
|
||||
|
||||
#endif
|
||||
#endif // C++11
|
||||
|
||||
#endif // _GLIBCXX_ATOMIC
|
||||
|
@ -18,7 +18,7 @@
|
||||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
#include <atomic> // { dg-excess-errors "In file included from" }
|
||||
#include <atomic>
|
||||
|
||||
// { dg-error "ISO C.. 2011" "" { target *-*-* } 32 }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user