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


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.


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


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