From 07428be53cf9474dc9ae730f14507255c99eb8da Mon Sep 17 00:00:00 2001 From: bkoz Date: Fri, 22 Dec 2000 00:27:01 +0000 Subject: 2000-12-21 Benjamin Kosnik * configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS. * acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to ENABLE_CHEADERS. C_INCLUDE_DIR defaults to c_std from c. * aclocal.m4: Regenerate. * configure: Regenerate. * include/c: Move to ... * include/c_std: ...here. * include/c_std: Move to ... * include/c_shadow: ...here. * include/c: Repopulate, with simple headers. * docs/html/configopts.html: Adjust docs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38440 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/include/c_std/bits/std_cstddef.h | 33 +++++++++------------------ 1 file changed, 11 insertions(+), 22 deletions(-) (limited to 'libstdc++-v3/include/c_std/bits/std_cstddef.h') diff --git a/libstdc++-v3/include/c_std/bits/std_cstddef.h b/libstdc++-v3/include/c_std/bits/std_cstddef.h index 588566499b3..184a533cfe3 100644 --- a/libstdc++-v3/include/c_std/bits/std_cstddef.h +++ b/libstdc++-v3/include/c_std/bits/std_cstddef.h @@ -1,4 +1,4 @@ -// -*- C++ -*- header wrapper. +// -*- C++ -*- forwarding header. // Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc. // @@ -31,29 +31,18 @@ // ISO C++ 14882: 18.1 Types // +// Note: This is not a conforming implementation. + #ifndef _CPP_CSTDDEF #define _CPP_CSTDDEF 1 -namespace _C_legacy { - extern "C" { -# define _IN_C_LEGACY_ -# pragma GCC system_header -// XXX -# define __need_size_t -# define __need_ptrdiff_t -# define __need_NULL -# include_next - } -} // namespace _C_legacy - -# undef ptrdiff_t -# undef size_t - -namespace std { - using _C_legacy::ptrdiff_t; - using _C_legacy::size_t; -} // namespace std - -# undef _IN_C_LEGACY_ +#pragma GCC system_header +#include + +namespace std +{ + using ::ptrdiff_t; + using ::size_t; +} #endif -- cgit v1.2.3