[tz] [PROPOSED PATCH] Port to GCC 3.4.6, which does not define __LONG_LONG_MIN__ on Irix.
Paul Eggert
eggert at cs.ucla.edu
Tue Aug 19 22:54:38 UTC 2014
* private.h (INT_FAST64_MIN, INTMAX_MIN): Don't use
__LONG_LONG_MIN__ when defining backwards-compatibility workaround.
---
private.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/private.h b/private.h
index 38f3f43..9482790 100644
--- a/private.h
+++ b/private.h
@@ -144,7 +144,7 @@ typedef long long int_fast64_t;
# define INT_FAST64_MIN LLONG_MIN
# define INT_FAST64_MAX LLONG_MAX
# else
-# define INT_FAST64_MIN __LONG_LONG_MIN__
+# define INT_FAST64_MIN (-1 - __LONG_LONG_MAX__)
# define INT_FAST64_MAX __LONG_LONG_MAX__
# endif
# define SCNdFAST64 "lld"
@@ -182,7 +182,7 @@ typedef long long intmax_t;
# define INTMAX_MIN LLONG_MIN
# else
# define INTMAX_MAX __LONG_LONG_MAX__
-# define INTMAX_MIN __LONG_LONG_MIN__
+# define INTMAX_MIN (-1 - __LONG_LONG_MAX__)
# endif
# else
typedef long intmax_t;
--
1.9.1
More information about the tz
mailing list