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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.1 branch libstdc++ problem with ctime on hpux


 In message <20020326214821.A8298@disaster.basement.lan>, Phil Edwards writes:
 > On Tue, Mar 26, 2002 at 04:35:01PM -0700, law@redhat.com wrote:
 > > 
 > > The underlying problem is "ctime" provided by libstdc++-v3 defines "_CTIME
 > ",
 > > which is a special symbol for HPUX -- if _CTIME is defined, then HPUX will
 > > not provide a prototype for the "ctime" function.
 > > 
 > > The only reason _CTIME is defined apparently is to deal with including
 > > "ctime" multiple times. 
 > 
 > Usually there's a smarter multiple-inclusion guard than just this; _CPP_foo
 > or __SGI_STL_INTERNAL_foo_H are the two most common.  If we can think up
 > a more consistent scheme I'll volunteer to do the gruntwork changes for
 > 3.1 and 3.2.
I've got no particular preference.  So whatever scheme you and Benjamin
pick I'm happy with.

In the mean time I'll hack something up locally to avoid the problem so that
I can proceed with HPUX testing.

jeff


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