(__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 0b91ed72327d71a9bd594237c4a55742c58bc891..760b2a57b4a3d3a060d7094e9501622e4b939db1 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)