From 589cf443b9eb52a77bdf5f2d39d14ad13349afce Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 4 Jul 1999 08:34:31 +0000 Subject: (__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) -- cgit v1.2.3-70-g09d2