summaryrefslogtreecommitdiff
path: root/lib/xstrtol.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-09-28 19:34:31 +0000
committerJim Meyering <jim@meyering.net>2001-09-28 19:34:31 +0000
commit9a8547bc45cfd4ef4e0d94ec81988eac9fe1fb16 (patch)
treebdaebd9211a2c991941f8157c43d00bb944e79be /lib/xstrtol.c
parent173be61cad33df10e452cb73e188b7ec2cd38e75 (diff)
downloadcoreutils-9a8547bc45cfd4ef4e0d94ec81988eac9fe1fb16.tar.xz
(strtol): Do not declare if HAVE_DECL_STRTOL.
(strtoul): Do not declare if HAVE_DECL_STRTOUL. (strtoimax, strtoumax): Do not declare if already defined as a macro.
Diffstat (limited to 'lib/xstrtol.c')
-rw-r--r--lib/xstrtol.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/xstrtol.c b/lib/xstrtol.c
index d7ca6cf5b..88071cdc5 100644
--- a/lib/xstrtol.c
+++ b/lib/xstrtol.c
@@ -78,19 +78,19 @@ extern int errno;
#include "xstrtol.h"
-#ifndef strtol
+#if !HAVE_DECL_STRTOL && !defined strtol
long int strtol ();
#endif
-#ifndef strtoul
+#if !HAVE_DECL_STRTOUL && !defined strtoul
unsigned long int strtoul ();
#endif
-#if !HAVE_DECL_STRTOIMAX
+#if !HAVE_DECL_STRTOIMAX && !defined strtoimax
intmax_t strtoimax ();
#endif
-#if !HAVE_DECL_STRTOUMAX
+#if !HAVE_DECL_STRTOUMAX && !defined strtoumax
uintmax_t strtoumax ();
#endif