Commit 709def90 by Paolo Carlini Committed by Paolo Carlini

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
parent d81230b5
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> 2014-10-23 François Dumont <fdumont@gcc.gnu.org>
* testsuite/25_algorithms/make_heap/complexity.cc: Add missing test * testsuite/25_algorithms/make_heap/complexity.cc: Add missing test
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#pragma GCC system_header #pragma GCC system_header
#include <bits/c++config.h> #include <bits/c++config.h>
#include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <bits/atomic_lockfree_defines.h> #include <bits/atomic_lockfree_defines.h>
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#if __cplusplus < 201103L #if __cplusplus < 201103L
# include <bits/c++0x_warning.h> # include <bits/c++0x_warning.h>
#endif #else
#include <bits/atomic_base.h> #include <bits/atomic_base.h>
...@@ -1129,4 +1129,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -1129,4 +1129,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_GLIBCXX_END_NAMESPACE_VERSION _GLIBCXX_END_NAMESPACE_VERSION
} // namespace } // namespace
#endif #endif // C++11
#endif // _GLIBCXX_ATOMIC
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
#include <atomic> // { dg-excess-errors "In file included from" } #include <atomic>
// { dg-error "ISO C.. 2011" "" { target *-*-* } 32 } // { dg-error "ISO C.. 2011" "" { target *-*-* } 32 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment