From 74f8a38e2a9679129070bf4c4f9665c9b63331b3 Mon Sep 17 00:00:00 2001 From: Russ Rew Date: Tue, 5 Jun 2012 17:02:43 +0000 Subject: [PATCH] Test for macro definitions of LLONG_MAX, LLONG_MIN, ULONG_MAX in to fix portability problem. --- libsrc/ncx.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libsrc/ncx.m4 b/libsrc/ncx.m4 index a01d42012..6fde8aef2 100644 --- a/libsrc/ncx.m4 +++ b/libsrc/ncx.m4 @@ -43,11 +43,15 @@ dnl #include #include - /* alias poorly named limits.h macros */ #define SHORT_MAX SHRT_MAX #define SHORT_MIN SHRT_MIN #define USHORT_MAX USHRT_MAX +#ifndef LLONG_MAX +# define LLONG_MAX 9223372036854775807LL +# define LLONG_MIN (-LLONG_MAX - 1LL) +# define ULLONG_MAX 18446744073709551615ULL +#endif #define LONG_LONG_MAX LLONG_MAX #define LONG_LONG_MIN LLONG_MIN #define ULONG_LONG_MAX ULLONG_MAX