cpplib: Fix __cplusplus definition
Phil Edwards
pedwards@disaster.jaj.com
Wed Feb 7 11:35:00 GMT 2001
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
More information about the Libstdc++
mailing list