From: Steve Hay Date: Tue, 30 Sep 2008 16:31:09 +0000 (+0000) Subject: Correct the sLOCALTIME_{min|max} values added by #34363 for BCC and VC9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=049aaf37de4ebebcfcfe544e014d51c23d56fd89;hp=d1ef72e8d5ca14e2484958daf12a72d6ccd2187f;p=p5sagit%2Fp5-mst-13.2.git Correct the sLOCALTIME_{min|max} values added by #34363 for BCC and VC9 (Manually checking with the Configure test programs shows that the values differ fromt he sGMTIME_{min|max} values for these compilers) p4raw-id: //depot/perl@34449 --- diff --git a/win32/config.bc b/win32/config.bc index 9ad9c97..fafdf1b 100644 --- a/win32/config.bc +++ b/win32/config.bc @@ -863,7 +863,7 @@ runnm='true' sGMTIME_max="2147483647" sGMTIME_min="-2147483648" sLOCALTIME_max="2147483647" -sLOCALTIME_min="-2147483648" +sLOCALTIME_min="0" sPRIEUldbl='"E"' sPRIFUldbl='"F"' sPRIGUldbl='"G"' diff --git a/win32/config_H.bc b/win32/config_H.bc index cf11190..5be7e41 100644 --- a/win32/config_H.bc +++ b/win32/config_H.bc @@ -4439,7 +4439,7 @@ * the system function localtime () accepts, and defaults to 0 */ #define LOCALTIME_MAX 2147483647 /**/ -#define LOCALTIME_MIN -2147483648 /**/ +#define LOCALTIME_MIN 0 /**/ /* USE_64_BIT_INT: * This symbol, if defined, indicates that 64-bit integers should diff --git a/win32/config_sh.PL b/win32/config_sh.PL index 98e158c..a30dfcf 100644 --- a/win32/config_sh.PL +++ b/win32/config_sh.PL @@ -131,7 +131,7 @@ if ($opt{uselargefiles} eq 'define' and $opt{cc} ne 'bcc32') { } } -# change the sGMTIME_min and sGMTIME_max for VS2005 (aka VC 8) and +# change the s{GM|LOCAL}TIME_{min|max} for VS2005 (aka VC 8) and # VS2008 (aka VC 9) or higher (presuming that later versions will have # at least the range of that). if ($opt{cc} eq 'cl' and $opt{ccversion} =~ /^(\d+)/) { @@ -143,8 +143,7 @@ if ($opt{cc} eq 'cl' and $opt{ccversion} =~ /^(\d+)/) { elsif ($ccversion >= 15) { $opt{sGMTIME_min} = -43200; $opt{sGMTIME_max} = 32535291599; - $opt{sLOCALTIME_min} = -43200; - $opt{sLOCALTIME_max} = 32535291599; + $opt{sLOCALTIME_max} = 32535244799; } }