diff options
author | Jim Meyering <jim@meyering.net> | 2003-11-27 08:02:18 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-11-27 08:02:18 +0000 |
commit | f2701c57580dc56ff8774b31640cb00a22217218 (patch) | |
tree | 05388d93448ea6183842b5d8ff4b1e63776ad7a8 | |
parent | 2a2f3217c6807c264fa2954e2577cf5d4f17ab01 (diff) | |
download | coreutils-f2701c57580dc56ff8774b31640cb00a22217218.tar.xz |
Remove decls of strtod, strtol, strtoul; no longer
needed now that we assume C89. Include "c-strtod.h".
(xstrtod): Call c_strtod, not strtod.
-rw-r--r-- | src/printf.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/printf.c b/src/printf.c index f3ad46284..f502169d0 100644 --- a/src/printf.c +++ b/src/printf.c @@ -52,6 +52,7 @@ #include <getopt.h> #include "system.h" +#include "c-strtod.h" #include "long-options.h" #include "error.h" #include "unicodeio.h" @@ -61,12 +62,6 @@ #define AUTHORS "David MacKenzie" -#ifndef STDC_HEADERS -double strtod (); -long int strtol (); -unsigned long int strtoul (); -#endif - #define isodigit(c) ((c) >= '0' && (c) <= '7') #define hextobin(c) ((c) >= 'a' && (c) <= 'f' ? (c) - 'a' + 10 : \ (c) >= 'A' && (c) <= 'F' ? (c) - 'A' + 10 : (c) - '0') @@ -194,7 +189,7 @@ FUNC_NAME (s) \ STRTOX (unsigned long int, xstrtoul, (strtoul (s, &end, 0))) STRTOX (long int, xstrtol, (strtol (s, &end, 0))) -STRTOX (double, xstrtod, (strtod (s, &end))) +STRTOX (double, xstrtod, (c_strtod (s, &end))) /* Output a single-character \ escape. */ |