summaryrefslogtreecommitdiff
path: root/lib/xstrtol.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-05-22 04:43:36 +0000
committerJim Meyering <jim@meyering.net>1995-05-22 04:43:36 +0000
commitec651d2263939b5244acc92b37e51793fa55359c (patch)
treeb8f3602c8b4e2125ef619f1b9d0109564887ede9 /lib/xstrtol.c
parent0895e4a7c48b927bec34f7341fe596b0b80e1883 (diff)
downloadcoreutils-ec651d2263939b5244acc92b37e51793fa55359c.tar.xz
(__strtol): Remove prototype altogether.
Move inclusion of xstrtol.h back so that it follows system headers.
Diffstat (limited to 'lib/xstrtol.c')
-rw-r--r--lib/xstrtol.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/xstrtol.c b/lib/xstrtol.c
index 591493e50..42d3758a6 100644
--- a/lib/xstrtol.c
+++ b/lib/xstrtol.c
@@ -2,12 +2,8 @@
#include <config.h>
#endif
-#include "xstrtol.h" /* Get definition for __P before use. */
-
#ifdef STDC_HEADERS
#include <stdlib.h>
-#else
-__unsigned long int __strtol __P ((const char *, char **, int base));
#endif
#ifdef HAVE_STRING_H
@@ -39,6 +35,8 @@ extern int errno;
#define LONG_MAX ((long int) (ULONG_MAX >> 1))
#endif
+#include "xstrtol.h"
+
#define BKM_SCALE(x, scale_factor, error_return) \
do \
{ \