This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: [PATCH] Changes the default size of time_t to 64 bit.


On Aug 25 08:15, Sebastian Huber wrote:
> Currently we have:
> 
> #define    _TIME_T_    long        /* time() */
> 
> If we change this type, it is probably nice to add a configure option to
> restore this definition for those who trade off binary compatibility with a
> year 2038 readiness.
> 
> I am still in favour of --enable-long-time_t, since this corresponds exactly
> to the current definition.
> 
> We should make the type change only if necessary, e.g. something like this:
> 
> #if defined(_USE_LONG_TIME_T) || __LONG_MAX__ > 0x7fffffffL
> 
> #define _TIME_T_ long
> 
> #else
> 
> #define _TIME_T_ __int_least64_t
> 
> #endif

Fine with me, unless Cygwin.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: signature.asc
Description: PGP signature


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