This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 3.1 branch libstdc++ problem with ctime on hpux
- From: Phil Edwards <phil at jaj dot com>
- To: law at redhat dot com
- Cc: bkoz at redhat dot com, gcc at gcc dot gnu dot org
- Date: Tue, 26 Mar 2002 21:48:21 -0500
- Subject: Re: 3.1 branch libstdc++ problem with ctime on hpux
- References: <6248.1017185701@porcupine.cygnus.com>
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