This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: #define POSIX, string.h and time.h
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: #define POSIX, string.h and time.h
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Mon, 19 Mar 2001 23:55:33 +0000 (GMT)
- cc: <zackw at Stanford dot EDU>, <gcc at gcc dot gnu dot org>
On Mon, 19 Mar 2001, Kaveh R. Ghazi wrote:
> Creating time.h from scratch is more complicated cause it defines
> time_t, clock_t, and various other structs and typedefs for which we
How about: if <sys/time.h> exists then make <time.h> include that,
otherwise make it empty, or make it have the minimum of definitions GCC
needs for its use in tsystem.h? (For example, if time_t is needed, we may
be able to get away with simply typedefing it to long on systems lacking
time_t.)
--
Joseph S. Myers
jsm28@cam.ac.uk