This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: cpplib: Fix __cplusplus definition
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>, libstdc++ at gcc dot gnu dot org
- Subject: Re: cpplib: Fix __cplusplus definition
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Wed, 7 Feb 2001 14:45:58 -0500
- Cc: gcc-patches at gcc dot gnu dot org
- References: <Pine.BSF.4.31.0101270208491.15258-200000@deneb.dbai.tuwien.ac.at> <Pine.SOL.3.91.1010126174323.16515A-100000@taarna.cygnus.com>
I'm kind of hoping we can resolve this in time for 3.0. Benjamin's message
below was the last I've seen on this topic. Thoughts from anybody?
Phil
On Fri, Jan 26, 2001 at 05:46:35PM -0800, Benjamin Kosnik wrote:
> > Please find pure.ii attached to this message.
>
> This is a small example of what is going on for solaris 2.8 compiles:
>
> //# 46 "/files/pfeifer/OBJ-0127-0049/gcc/include/sys/types.h" 2 3 4
> #if 1
> extern "C" {
> typedef unsigned int size_t;
> }
> #endif
>
> //# 31 "/usr/include/iso/time_iso.h" 2 3 4
> extern "C"
> {
> namespace std
> {
> typedef unsigned size_t;
> }
> }
>
>
> //# 21 "/usr/include/time.h" 2 3 4
> using std::size_t;
>
>
> It looks to me like what should be done is supress
> gcc/include/sys/types.h (size_t, ptrdiff_t)
>
> -benjamin