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: Introduction and 64 bit time_t


On Aug  9 13:47, Philipp.Trommler@preh.de wrote:
> Am Mittwoch, den 09.08.2017, 14:35 +0200 schrieb Corinna Vinschen:
> 
> [snip]
> 
> > I'd prefer to use the type long on LP64 systems, but long long should
> > work fine for all 32 bit systems (baring 32 bit Cygwin).
> > 
> > However, a developer might want to design an embedded system still
> > using
> > a 32 bit time_t for the time being, so there should be some build-
> > time
> > switch for this case.  We're talking about a 21 year timeframe, which
> > may still be more than enough for some systems.
> 
> So we can agree on a build-time switch like --enable-long-long-time-t

What about --enable-32bit-time_t or something like that?  By default
time_t should default to long on targets with sizeof(long)==8 and to
long long on targets with sizeof(long)==4.


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]