From 2cbae43645eb44e836d8b08a1c4d5f1f12e6dca8 Mon Sep 17 00:00:00 2001 From: roland Date: Thu, 19 Jan 1995 14:35:58 +0000 Subject: [PATCH] Include errno.h. [QUAD] (ULONG_MAX): Define to a static variable initialized to ULONG_LONG_MAX. This is to work around a GCC bug in using the constant in arithmetic. --- stdlib/strtol.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stdlib/strtol.c b/stdlib/strtol.c index a128256063..e2366f10b2 100644 --- a/stdlib/strtol.c +++ b/stdlib/strtol.c @@ -21,7 +21,7 @@ Cambridge, MA 02139, USA. */ #include #include #include - +#include /* Nonzero if we are defining `strtoul' or `strtouq', operating on unsigned integers. */ @@ -43,7 +43,9 @@ Cambridge, MA 02139, USA. */ #undef LONG_MAX #define LONG_MAX LONG_LONG_MAX #undef ULONG_MAX -#define ULONG_MAX ULONG_LONG_MAX +#define ULONG_MAX maxquad +/* XXX Work around gcc bug with using this constant. */ +static unsigned long long int maxquad = ULONG_LONG_MAX; #else #define LONG long #endif -- 2.11.0