changeset 1862:f06f96323220

(__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.
author Jim Meyering <jim@meyering.net>
date Sun, 04 Jul 1999 08:34:31 +0000
parents a077b27f10c2
children e6b535c4a46e
files lib/xstrtol.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/xstrtol.c
+++ b/lib/xstrtol.c
@@ -78,7 +78,13 @@
 
 #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)