diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-04 09:16:29 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-04 09:16:29 +0000 |
commit | 19665740d336d4ee7d0cf92b5b0643fa1d7da14a (patch) | |
tree | 7ab55f2878d6fb1a887abab23771524ee4745ffd | |
parent | 0c493d63ebde15579e09f40320f446995cf5d838 (diff) | |
download | gcc-19665740d336d4ee7d0cf92b5b0643fa1d7da14a.tar.gz |
Make all <cxxx> headers include <bits/c++config.h>
PR libstdc++/65473
* include/c/cassert: Include <bits/c++config.h>.
* include/c/cerrno: Likewise.
* include/c/cfloat: Likewise.
* include/c/ciso646: Likewise.
* include/c/climits: Likewise.
* include/c_global/cassert: Likewise.
* include/c_global/cerrno: Likewise.
* include/c_global/cfloat: Likewise.
* include/c_global/ciso646: Likewise.
* include/c_global/climits: Likewise.
* include/c_std/cassert: Likewise.
* include/c_std/cerrno: Likewise.
* include/c_std/cfloat: Likewise.
* include/c_std/ciso646: Likewise.
* include/c_std/climits: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227484 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libstdc++-v3/ChangeLog | 19 | ||||
-rw-r--r-- | libstdc++-v3/include/c/cassert | 1 | ||||
-rw-r--r-- | libstdc++-v3/include/c/cerrno | 1 | ||||
-rw-r--r-- | libstdc++-v3/include/c/cfloat | 1 | ||||
-rw-r--r-- | libstdc++-v3/include/c/ciso646 | 10 | ||||
-rw-r--r-- | libstdc++-v3/include/c/climits | 1 | ||||
-rw-r--r-- | libstdc++-v3/include/c_global/cassert | 1 | ||||
-rw-r--r-- | libstdc++-v3/include/c_global/cerrno | 1 | ||||
-rw-r--r-- | libstdc++-v3/include/c_global/cfloat | 1 | ||||
-rw-r--r-- | libstdc++-v3/include/c_global/ciso646 | 11 | ||||
-rw-r--r-- | libstdc++-v3/include/c_global/climits | 1 | ||||
-rw-r--r-- | libstdc++-v3/include/c_std/cassert | 1 | ||||
-rw-r--r-- | libstdc++-v3/include/c_std/cerrno | 1 | ||||
-rw-r--r-- | libstdc++-v3/include/c_std/cfloat | 1 | ||||
-rw-r--r-- | libstdc++-v3/include/c_std/ciso646 | 11 | ||||
-rw-r--r-- | libstdc++-v3/include/c_std/climits | 1 |
16 files changed, 55 insertions, 8 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ced20a31a5a..68464ead640 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,22 @@ +2015-09-04 Jonathan Wakely <jwakely@redhat.com> + + PR libstdc++/65473 + * include/c/cassert: Include <bits/c++config.h>. + * include/c/cerrno: Likewise. + * include/c/cfloat: Likewise. + * include/c/ciso646: Likewise. + * include/c/climits: Likewise. + * include/c_global/cassert: Likewise. + * include/c_global/cerrno: Likewise. + * include/c_global/cfloat: Likewise. + * include/c_global/ciso646: Likewise. + * include/c_global/climits: Likewise. + * include/c_std/cassert: Likewise. + * include/c_std/cerrno: Likewise. + * include/c_std/cfloat: Likewise. + * include/c_std/ciso646: Likewise. + * include/c_std/climits: Likewise. + 2015-09-03 Jonathan Wakely <jwakely@redhat.com> * include/bits/shared_ptr_base.h: Add required header. diff --git a/libstdc++-v3/include/c/cassert b/libstdc++-v3/include/c/cassert index 46e4172fc2a..3965d168417 100644 --- a/libstdc++-v3/include/c/cassert +++ b/libstdc++-v3/include/c/cassert @@ -30,4 +30,5 @@ #pragma GCC system_header +#include <bits/c++config.h> #include_next <assert.h> diff --git a/libstdc++-v3/include/c/cerrno b/libstdc++-v3/include/c/cerrno index 1d56cb409df..6ea1d4c1119 100644 --- a/libstdc++-v3/include/c/cerrno +++ b/libstdc++-v3/include/c/cerrno @@ -40,6 +40,7 @@ #pragma GCC system_header +#include <bits/c++config.h> #include_next <errno.h> // Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998 diff --git a/libstdc++-v3/include/c/cfloat b/libstdc++-v3/include/c/cfloat index 25cfa6454e4..282eb31e57b 100644 --- a/libstdc++-v3/include/c/cfloat +++ b/libstdc++-v3/include/c/cfloat @@ -31,6 +31,7 @@ #pragma GCC system_header +#include <bits/c++config.h> #include_next <float.h> #endif diff --git a/libstdc++-v3/include/c/ciso646 b/libstdc++-v3/include/c/ciso646 index 125f16690f3..6eca2742f45 100644 --- a/libstdc++-v3/include/c/ciso646 +++ b/libstdc++-v3/include/c/ciso646 @@ -27,6 +27,12 @@ * in your programs, rather than any of the "*.h" implementation files. * * This is the C++ version of the Standard C Library header @c iso646.h, - * and its contents are (mostly) the same as that header, but are all - * contained in the namespace @c std. + * which is empty in C++. */ +#ifndef _GLIBCXX_CISO646 +#define _GLIBCXX_CISO646 + +#pragma GCC system_header + +#include <bits/c++config.h> +#endif diff --git a/libstdc++-v3/include/c/climits b/libstdc++-v3/include/c/climits index f8b19d5b4ed..5333af970bf 100644 --- a/libstdc++-v3/include/c/climits +++ b/libstdc++-v3/include/c/climits @@ -31,6 +31,7 @@ #pragma GCC system_header +#include <bits/c++config.h> #include_next <limits.h> #endif diff --git a/libstdc++-v3/include/c_global/cassert b/libstdc++-v3/include/c_global/cassert index e555a3857f0..f404560d876 100644 --- a/libstdc++-v3/include/c_global/cassert +++ b/libstdc++-v3/include/c_global/cassert @@ -40,4 +40,5 @@ #pragma GCC system_header +#include <bits/c++config.h> #include <assert.h> diff --git a/libstdc++-v3/include/c_global/cerrno b/libstdc++-v3/include/c_global/cerrno index 7060b1e1e98..9f173c50a58 100644 --- a/libstdc++-v3/include/c_global/cerrno +++ b/libstdc++-v3/include/c_global/cerrno @@ -38,6 +38,7 @@ #pragma GCC system_header +#include <bits/c++config.h> #include <errno.h> #ifndef _GLIBCXX_CERRNO diff --git a/libstdc++-v3/include/c_global/cfloat b/libstdc++-v3/include/c_global/cfloat index 2c4ae284c16..50f7d3d5442 100644 --- a/libstdc++-v3/include/c_global/cfloat +++ b/libstdc++-v3/include/c_global/cfloat @@ -38,6 +38,7 @@ #pragma GCC system_header +#include <bits/c++config.h> #include <float.h> #ifndef _GLIBCXX_CFLOAT diff --git a/libstdc++-v3/include/c_global/ciso646 b/libstdc++-v3/include/c_global/ciso646 index 818db67db0a..93fded401cd 100644 --- a/libstdc++-v3/include/c_global/ciso646 +++ b/libstdc++-v3/include/c_global/ciso646 @@ -27,7 +27,12 @@ * in your programs, rather than any of the @a *.h implementation files. * * This is the C++ version of the Standard C Library header @c iso646.h, - * and its contents are (mostly) the same as that header, but are all - * contained in the namespace @c std (except for names which are defined - * as macros in C). + * which is empty in C++. */ +#ifndef _GLIBCXX_CISO646 +#define _GLIBCXX_CISO646 + +#pragma GCC system_header + +#include <bits/c++config.h> +#endif diff --git a/libstdc++-v3/include/c_global/climits b/libstdc++-v3/include/c_global/climits index e3da66ce13e..d6e7994a894 100644 --- a/libstdc++-v3/include/c_global/climits +++ b/libstdc++-v3/include/c_global/climits @@ -38,6 +38,7 @@ #pragma GCC system_header +#include <bits/c++config.h> #include <limits.h> #ifndef _GLIBCXX_CLIMITS diff --git a/libstdc++-v3/include/c_std/cassert b/libstdc++-v3/include/c_std/cassert index ea6daea0f4a..641b03a88bd 100644 --- a/libstdc++-v3/include/c_std/cassert +++ b/libstdc++-v3/include/c_std/cassert @@ -40,4 +40,5 @@ #pragma GCC system_header +#include <bits/c++config.h> #include <assert.h> diff --git a/libstdc++-v3/include/c_std/cerrno b/libstdc++-v3/include/c_std/cerrno index 06618b9f8e0..ef298fa03a8 100644 --- a/libstdc++-v3/include/c_std/cerrno +++ b/libstdc++-v3/include/c_std/cerrno @@ -41,6 +41,7 @@ #pragma GCC system_header +#include <bits/c++config.h> #include <errno.h> // Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998 diff --git a/libstdc++-v3/include/c_std/cfloat b/libstdc++-v3/include/c_std/cfloat index d730af95c59..01f1724cf8e 100644 --- a/libstdc++-v3/include/c_std/cfloat +++ b/libstdc++-v3/include/c_std/cfloat @@ -41,6 +41,7 @@ #pragma GCC system_header +#include <bits/c++config.h> #include <float.h> #endif diff --git a/libstdc++-v3/include/c_std/ciso646 b/libstdc++-v3/include/c_std/ciso646 index 08cdf248c83..7829d72ebce 100644 --- a/libstdc++-v3/include/c_std/ciso646 +++ b/libstdc++-v3/include/c_std/ciso646 @@ -27,7 +27,12 @@ * in your programs, rather than any of the @a *.h implementation files. * * This is the C++ version of the Standard C Library header @c iso646.h, - * and its contents are (mostly) the same as that header, but are all - * contained in the namespace @c std (except for names which are defined - * as macros in C). + * which is empty in C++. */ +#ifndef _GLIBCXX_CISO646 +#define _GLIBCXX_CISO646 + +#pragma GCC system_header + +#include <bits/c++config.h> +#endif diff --git a/libstdc++-v3/include/c_std/climits b/libstdc++-v3/include/c_std/climits index 348d4c348f8..bffa892686c 100644 --- a/libstdc++-v3/include/c_std/climits +++ b/libstdc++-v3/include/c_std/climits @@ -41,6 +41,7 @@ #pragma GCC system_header +#include <bits/c++config.h> #include <limits.h> #endif |