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:
Paolo Carlini 2014-10-24 12:54:43 +00:00 committed by Paolo Carlini
parent d81230b555
commit 709def90a4
4 changed files with 12 additions and 4 deletions

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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 }