This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Remove ctime declaration in libgcc2.c
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: schwab at suse dot de
- Cc: gcc-patches at gcc dot gnu dot org, kenner at vlsi1 dot ultra dot nyu dot edu
- Date: Tue, 11 Dec 2001 14:35:02 -0500 (EST)
- Subject: Re: Remove ctime declaration in libgcc2.c
> kenner@vlsi1.ultra.nyu.edu (Richard Kenner) writes:
>
> |> Does it work to include <time.h> instead? That would be The
> |> Right Thing in the context of the C standard.
> |>
> |> I was told that it doesn't work: not all systems have it.
>
> And what if ctime is declared without prototype? IIRC gcc special
> cases this to never conflict with a previous prototype.
> Andreas.
You'll get time.h from tsystem.h if your configuration defines POSIX.
Set xm_defines=POSIX in config.gcc for your flavor of ia64.
Or, if we agree most systems these days have time.h, we could use a
reverse-sense macro (NO_TIME_H) in tsystem.h and set it for the
appropriate platforms. I suspect none such platforms are in use today
anyway. But if they are, we have an easy way to fix them.
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions