This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: cpplib: Fix __cplusplus definition
- To: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Subject: Re: cpplib: Fix __cplusplus definition
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Fri, 26 Jan 2001 17:46:35 -0800 (PST)
- cc: Phil Edwards <pedwards at disaster dot jaj dot com>, Neil Booth <neil at daikokuya dot demon dot co dot uk>, libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
> 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