summaryrefslogtreecommitdiff
path: root/lib/xstrtol.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-05-21 11:44:22 +0000
committerJim Meyering <jim@meyering.net>1995-05-21 11:44:22 +0000
commit7f9311c20e369a10a5583e9236e8daafc69758a0 (patch)
tree9b2a355f8c6da07849caea201bdc46082f8bf5a6 /lib/xstrtol.c
parent37a6bc3abff0636164ba01a09994ba91c9b065df (diff)
downloadcoreutils-7f9311c20e369a10a5583e9236e8daafc69758a0.tar.xz
merge with 1.11.1b
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 383225233..591493e50 100644
--- a/lib/xstrtol.c
+++ b/lib/xstrtol.c
@@ -2,10 +2,12 @@
#include <config.h>
#endif
+#include "xstrtol.h" /* Get definition for __P before use. */
+
#ifdef STDC_HEADERS
#include <stdlib.h>
#else
-long int __strtol (const char *, char **, int base);
+__unsigned long int __strtol __P ((const char *, char **, int base));
#endif
#ifdef HAVE_STRING_H
@@ -17,8 +19,8 @@ long int __strtol (const char *, char **, int base);
# endif
#endif
+#define NDEBUG
#include <assert.h>
-/* FIXME: define NDEBUG before release. */
#include <errno.h>
#ifndef errno
@@ -37,8 +39,6 @@ extern int errno;
#define LONG_MAX ((long int) (ULONG_MAX >> 1))
#endif
-#include "xstrtol.h"
-
#define BKM_SCALE(x, scale_factor, error_return) \
do \
{ \