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

Re: #define POSIX, string.h and time.h


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


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