projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0430c3c
)
(__strtol): Remove decl; it doesn't work if __strtol
author
Jim Meyering
<jim@meyering.net>
Sun, 4 Jul 1999 08:34:31 +0000
(08:34 +0000)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/lib/xstrtol.c
b/lib/xstrtol.c
index 0b91ed72327d71a9bd594237c4a55742c58bc891..760b2a57b4a3d3a060d7094e9501622e4b939db1 100644
(file)
--- 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)