From: Jonathan Wakely Date: Fri, 4 Sep 2015 09:16:29 +0000 (+0100) Subject: Make all headers include X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57003677cf4f7422afdbd2845f15a71303e414e1;p=gcc.git Make all headers include PR libstdc++/65473 * include/c/cassert: Include . * 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. From-SVN: r227484 --- 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 + + PR libstdc++/65473 + * include/c/cassert: Include . + * 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 * 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 #include_next 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 #include_next // 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 #include_next #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 +#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 #include_next #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 #include 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 #include #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 #include #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 +#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 #include #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 #include 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 #include // 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 #include #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 +#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 #include #endif