]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Remove decls of strtod, strtol, strtoul; no longer
authorJim Meyering <jim@meyering.net>
Thu, 27 Nov 2003 08:02:18 +0000 (08:02 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 27 Nov 2003 08:02:18 +0000 (08:02 +0000)
needed now that we assume C89.  Include "c-strtod.h".
(xstrtod): Call c_strtod, not strtod.

src/printf.c

index f3ad462842a8437e0a9a78da3c6cf78fb9700fa2..f502169d0d5f95df892cd186db806c7c62201c85 100644 (file)
@@ -52,6 +52,7 @@
 #include <getopt.h>
 
 #include "system.h"
+#include "c-strtod.h"
 #include "long-options.h"
 #include "error.h"
 #include "unicodeio.h"
 
 #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.  */