(__strtol): Remove decl; it doesn't work if __strtol
authorJim Meyering <jim@meyering.net>
Sun, 4 Jul 1999 08:34:31 +0000 (08:34 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 4 Jul 1999 08:34:31 +0000 (08:34 +0000)
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

index 0b91ed7..760b2a5 100644 (file)
@@ -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)