From 049aaf37de4ebebcfcfe544e014d51c23d56fd89 Mon Sep 17 00:00:00 2001 From: Steve Hay Date: Tue, 30 Sep 2008 16:31:09 +0000 Subject: [PATCH] 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 --- win32/config.bc | 2 +- win32/config_H.bc | 2 +- win32/config_sh.PL | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) 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; } } -- 2.7.4