Permalink
Browse files

Sun's cc will puke because we're passing in too many elements to the …

…tm struct. [rt.cpan.org #55225]
  • Loading branch information...
1 parent 62ca646 commit 1f754ce691f3c6c4bfa7e9e0f063740fb675b9cb @schwern schwern committed Mar 4, 2010
Showing with 6 additions and 16 deletions.
  1. +6 −0 perl/Time-y2038/Changes
  2. +0 −16 time64.c
View
@@ -1,3 +1,9 @@
+Next
+ Bugs
+ * strict compilers, like Sun's cc, would error because we passed
+ too many elements to the tm struct. [rt.cpan.org #55225]
+
+
20100225 Thu Feb 25 23:09:15 PST 2010
Bugs
* Accidentally left a debugging print in mktime()
View
@@ -60,13 +60,9 @@ SYSTEM_MKTIME_MAX_TM_YDAY,
SYSTEM_MKTIME_MAX_TM_ISDST
#ifdef HAS_TM_TM_GMTOFF
,SYSTEM_MKTIME_MAX_TM_GMTOFF
-#else
-,0
#endif
#ifdef HAS_TM_TM_ZONE
,SYSTEM_MKTIME_MAX_TM_ZONE
-#else
-,""
#endif
};
@@ -82,13 +78,9 @@ SYSTEM_MKTIME_MIN_TM_YDAY,
SYSTEM_MKTIME_MIN_TM_ISDST
#ifdef HAS_TM_TM_GMTOFF
,SYSTEM_MKTIME_MIN_TM_GMTOFF
-#else
-,0
#endif
#ifdef HAS_TM_TM_ZONE
,SYSTEM_MKTIME_MIN_TM_ZONE
-#else
-,""
#endif
};
@@ -105,13 +97,9 @@ SYSTEM_TIMEGM_MAX_TM_YDAY,
SYSTEM_TIMEGM_MAX_TM_ISDST
#ifdef HAS_TM_TM_GMTOFF
,SYSTEM_TIMEGM_MAX_TM_GMTOFF
-#else
-,0
#endif
#ifdef HAS_TM_TM_ZONE
,SYSTEM_TIMEGM_MAX_TM_ZONE
-#else
-,""
#endif
};
@@ -127,13 +115,9 @@ SYSTEM_TIMEGM_MIN_TM_YDAY,
SYSTEM_TIMEGM_MIN_TM_ISDST
#ifdef HAS_TM_TM_GMTOFF
,SYSTEM_TIMEGM_MIN_TM_GMTOFF
-#else
-,0
#endif
#ifdef HAS_TM_TM_ZONE
,SYSTEM_TIMEGM_MIN_TM_ZONE
-#else
-,""
#endif
};
#endif /* HAS_TIMEGM */

0 comments on commit 1f754ce

Please sign in to comment.