This is the mail archive of the gcc-patches@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: 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


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