From 8098e75c0be3e52e094306bfbb7c5350f543ee96 Mon Sep 17 00:00:00 2001 From: "H.Merijn Brand" Date: Wed, 11 Feb 2009 14:52:41 +0100 Subject: avoid confusing gcc with -2147483648 As Robin explained, -123UL will be (should be) parsed as -(123UL), which should make all compilers happy --- time64_config.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'time64_config.h') diff --git a/time64_config.h b/time64_config.h index bc3818c567..4032acd215 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 */ -- cgit v1.2.1