This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: _CTIME namespace conflict on hpux 11
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: law at redhat dot com
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Wed, 27 Mar 2002 12:07:11 -0500 (EST)
- Subject: Re: _CTIME namespace conflict on hpux 11
> I reported the same problem to Benjamin & friends last night for the PA32
> platform. It should be fixed if you update your tree again :-)
In looking at this, I noticed what appears to be a small error in the hpux
sys/time.h header file:
# ifndef _ASCTIME
extern char *asctime(const struct tm *);
# endif
It's missing a define for _ASCTIME. Both hpux 10 and 11 are missing it.
On the otherhand, maybe the define isn't really needed because the declaration
is only done once at most anyway. However, defining it would follow the
convention used in sys/types.h, and for the other declarations in sys/time.h.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)