From: Jim Meyering Date: Sun, 4 Jul 1999 08:34:31 +0000 (+0000) Subject: (__strtol): Remove decl; it doesn't work if __strtol X-Git-Tag: TEXTUTILS-1_22n~81 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=589cf443b9eb52a77bdf5f2d39d14ad13349afce;p=platform%2Fupstream%2Fcoreutils.git (__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. --- diff --git a/lib/xstrtol.c b/lib/xstrtol.c index 0b91ed7..760b2a5 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)