This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cpplib: Fix __cplusplus definition


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]