This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
avoid confusing gcc with -2147483648
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Wed, 11 Feb 2009 13:52:41 +0000 (14:52 +0100)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Wed, 11 Feb 2009 13:52:41 +0000 (14:52 +0100)
As Robin explained, -123UL will be (should be) parsed as -(123UL), which should make all compilers happy

time64_config.h

index bc3818c..4032acd 100644 (file)
@@ -74,9 +74,9 @@
    can handle.  We will use your system functions if the time falls
    inside these ranges.
 */
-#define SYSTEM_LOCALTIME_MAX    LOCALTIME_MAX
-#define SYSTEM_LOCALTIME_MIN    LOCALTIME_MIN
-#define SYSTEM_GMTIME_MAX       GMTIME_MAX
-#define SYSTEM_GMTIME_MIN       GMTIME_MIN
+#define SYSTEM_LOCALTIME_MAX    CAT2(LOCALTIME_MAX,UL)
+#define SYSTEM_LOCALTIME_MIN    CAT2(LOCALTIME_MIN,UL)
+#define SYSTEM_GMTIME_MAX       CAT2(GMTIME_MAX,UL)
+#define SYSTEM_GMTIME_MIN       CAT2(GMTIME_MIN,UL)
 
 #endif /* TIME64_CONFIG_H */