From e911cfd715b17d7314df5882f00b86a2cef6c3ad Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 4 Jul 1999 08:34:31 +0000 Subject: [PATCH] (__strtol): Remove decl; it doesn't work if __strtol expands to a macro, which occurs in HP-UX 10.20 with strtoumax. (strtol, strtoul): New decls (for pre-ANSI hosts), to replace the above decl. --- lib/xstrtol.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/xstrtol.c b/lib/xstrtol.c index 0b91ed723..760b2a57b 100644 --- a/lib/xstrtol.c +++ b/lib/xstrtol.c @@ -78,7 +78,13 @@ extern int errno; #include "xstrtol.h" -__strtol_t __strtol (); +#ifndef strtol +long int strtol (); +#endif + +#ifndef strtoul +unsigned long int strtoul (); +#endif static int bkm_scale (__strtol_t *x, int scale_factor) -- 2.11.0