summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/c_std/bits/std_cstddef.h
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-17 08:25:08 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-17 08:25:08 +0000
commitaf7db8cb22256d2ba4039fe9ef231702f4bb92c2 (patch)
treeca758d85d8aa5ae51afe442a86f12910b08488c6 /libstdc++-v3/include/c_std/bits/std_cstddef.h
parent1b9a993065e958d89af34d3abb677e1d3c468236 (diff)
downloadppe42-gcc-af7db8cb22256d2ba4039fe9ef231702f4bb92c2.tar.gz
ppe42-gcc-af7db8cb22256d2ba4039fe9ef231702f4bb92c2.zip
2000-10-16 Benjamin Kosnik <bkoz@gnu.org>
Shadow headers would work if libsupc++ was strict about namespaces. This only possible if g++ maps std::size_t -> size_t. (Hint hint.) * include/c_std/assert.h: Add guards. * include/c_std/bits/std_climits.h: Correct typo. * include/c_std/ctype.h: Remove #error. * libio/libioP.h: Break up extern "C" bits around includes. * libio/libio.h: Only include C headers, or else _C_legacy namespaces will be nested. * libio/libioP.h: Same here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36900 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/c_std/bits/std_cstddef.h')
-rw-r--r--libstdc++-v3/include/c_std/bits/std_cstddef.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/libstdc++-v3/include/c_std/bits/std_cstddef.h b/libstdc++-v3/include/c_std/bits/std_cstddef.h
index 5ebcb61c808..588566499b3 100644
--- a/libstdc++-v3/include/c_std/bits/std_cstddef.h
+++ b/libstdc++-v3/include/c_std/bits/std_cstddef.h
@@ -38,7 +38,11 @@ namespace _C_legacy {
extern "C" {
# define _IN_C_LEGACY_
# pragma GCC system_header
-# include_next <stddef.h>
+// XXX
+# define __need_size_t
+# define __need_ptrdiff_t
+# define __need_NULL
+# include_next <stddef.h>
}
} // namespace _C_legacy
@@ -53,8 +57,3 @@ namespace std {
# undef _IN_C_LEGACY_
#endif
-
-
-
-
-
OpenPOWER on IntegriCloud