[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

RE: y2038 branch



H.Merijn Brand wrote:
> On Fri, 12 Sep 2008 17:36:21 -0700, Michael G Schwern
> <schwern@pobox.com> wrote:
>> Merijn, could you put in LOCALTIME_MAX and LOCALTIME_MIN functions
>> similar to GMTIME_MAX and GMTIME_MIN?  Then I can make it use the
>> system functions instead, if applicable.  Thanks.
> 
> In with change #34363
> 
[...]
> 
> I've also added them to the win32 config files where the GM versions
> were already added, sanity checks might be appropriate.

I've made a couple of minor corrections for BCC and VC9 (#34449): the
(current) Configure test programs show that the ranges are slightly
different for LOCALTIME compared to GMTIME for those compilers.

I've also found that the programs break using VC8/VC9 (where time_t has
size 8) if I include <windows.h> because that defines MINLONG and
MAXLONG (as -2147483648 and 2147483647 respectively): I end up with
results like

sGMTIME_min 2147483648 [sic]
sGMTIME_max 2147483647

instead of

sGMTIME_min 0
sGMTIME_max 32535244799

(I see there are discussions on-going about changing these programs
anyway, so this may not be relevant in due course.)


Follow-Ups from:
Michael G Schwern <schwern@pobox.com>
"H.Merijn Brand" <h.m.brand@xs4all.nl>
References to:
Michael G Schwern <schwern@pobox.com>
"H.Merijn Brand" <h.m.brand@xs4all.nl>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]