[tz] [PROPOSED PATCH 3/3] Port to GCC 4.1.3 + NetBSD 5.1.

Paul Eggert eggert at cs.ucla.edu
Fri Aug 15 05:53:47 UTC 2014


* private.h (INT_FAST32_MAX, INT_FAST32_MIN):
Define if not already defined, since localtime.c uses them.
---
 private.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/private.h b/private.h
index 6f756a4..fbc7a83 100644
--- a/private.h
+++ b/private.h
@@ -163,8 +163,12 @@ typedef long		int_fast64_t;
 #ifndef INT_FAST32_MAX
 # if INT_MAX >> 31 == 0
 typedef long int_fast32_t;
+#  define INT_FAST32_MAX LONG_MAX
+#  define INT_FAST32_MIN LONG_MIN
 # else
 typedef int int_fast32_t;
+#  define INT_FAST32_MAX INT_MAX
+#  define INT_FAST32_MIN INT_MIN
 # endif
 #endif
 
-- 
1.9.1



More information about the tz mailing list