From: Steve Hay <SteveHay@planit.com>
Date: Tue, 7 Oct 2008 08:28:05 +0000 (+0000)
Subject: Refine Win32's s{GM|LOCAL}TIME_{min|max} values based on the output of
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=92e71c9183a0db74aa4ef4999dac86e2ffadfac4;p=p5sagit%2Fp5-mst-13.2.git

Refine Win32's s{GM|LOCAL}TIME_{min|max} values based on the output of
Schwern's latest check_max.c program.

See:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2008-10/msg00049.html
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2008-10/msg00137.html

p4raw-id: //depot/perl@34469
---

diff --git a/win32/config.bc b/win32/config.bc
index a888daa..4e7cd11 100644
--- a/win32/config.bc
+++ b/win32/config.bc
@@ -867,7 +867,7 @@ rmail=''
 run=''
 runnm='true'
 sGMTIME_max="2147483647"
-sGMTIME_min="-2147483648"
+sGMTIME_min="0"
 sLOCALTIME_max="2147483647"
 sLOCALTIME_min="0"
 sPRIEUldbl='"E"'
diff --git a/win32/config_H.bc b/win32/config_H.bc
index 5be7e41..9e15ff3 100644
--- a/win32/config_H.bc
+++ b/win32/config_H.bc
@@ -4428,7 +4428,7 @@
  *	the system function gmtime () accepts, and defaults to 0
  */
 #define GMTIME_MAX	2147483647	/**/
-#define GMTIME_MIN	-2147483648	/**/
+#define GMTIME_MIN	0	/**/
 
 /* LOCALTIME_MAX:
  *	This symbol contains the maximum value for the time_t offset that
diff --git a/win32/config_sh.PL b/win32/config_sh.PL
index a30dfcf..2cdd155 100644
--- a/win32/config_sh.PL
+++ b/win32/config_sh.PL
@@ -136,12 +136,7 @@ if ($opt{uselargefiles} eq 'define' and $opt{cc} ne 'bcc32') {
 # at least the range of that).
 if ($opt{cc} eq 'cl' and $opt{ccversion} =~ /^(\d+)/) {
     my $ccversion = $1;
-    if ($ccversion == 14) {
-	$opt{sGMTIME_max} = 32535244799;
-	$opt{sLOCALTIME_max} = 32535244799;
-    }
-    elsif ($ccversion >= 15) {
-	$opt{sGMTIME_min} = -43200;
+    if ($ccversion >= 14) {
 	$opt{sGMTIME_max} = 32535291599;
 	$opt{sLOCALTIME_max} = 32535244799;
     }