From: H.Merijn Brand Date: Wed, 11 Feb 2009 13:52:41 +0000 (+0100) Subject: avoid confusing gcc with -2147483648 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8098e75c0be3e52e094306bfbb7c5350f543ee96;p=p5sagit%2Fp5-mst-13.2.git avoid confusing gcc with -2147483648 As Robin explained, -123UL will be (should be) parsed as -(123UL), which should make all compilers happy --- diff --git a/time64_config.h b/time64_config.h index bc3818c..4032acd 100644 --- a/time64_config.h +++ b/time64_config.h @@ -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 */