summaryrefslogtreecommitdiff
path: root/lib/strtol.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-12-15 15:36:02 +0000
committerJim Meyering <jim@meyering.net>1995-12-15 15:36:02 +0000
commit4a99368c872f6b0b0e17ca7ff20ca6eb132437d5 (patch)
tree8c52c5e3f1517236c6dc27b809db429a6d2429c8 /lib/strtol.c
parent46faa9979fb311e24fdd968a1dcbad3892daef7f (diff)
downloadcoreutils-4a99368c872f6b0b0e17ca7ff20ca6eb132437d5.tar.xz
new version from FSF
Diffstat (limited to 'lib/strtol.c')
-rw-r--r--lib/strtol.c37
1 files changed, 19 insertions, 18 deletions
diff --git a/lib/strtol.c b/lib/strtol.c
index 99840833d..dfc299160 100644
--- a/lib/strtol.c
+++ b/lib/strtol.c
@@ -1,21 +1,22 @@
/* Copyright (C) 1991, 1992, 1994, 1995 Free Software Foundation, Inc.
- NOTE: The canonical source of this file is maintained with the GNU C Library.
- Bugs can be reported to bug-glibc@prep.ai.mit.edu.
- This program is free software; you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by the
- Free Software Foundation; either version 2, or (at your option) any
- later version.
+NOTE: The canonical source of this file is maintained with the GNU C Library.
+Bugs can be reported to bug-glibc@prep.ai.mit.edu.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+This program is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 2, or (at your option) any
+later version.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifdef HAVE_CONFIG_H
# include <config.h>
@@ -33,7 +34,7 @@
extern int errno;
#endif
-#if HAVE_LIMITS_H
+#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
@@ -277,10 +278,6 @@ noconv:
/* External user entry point. */
-#ifdef weak_symbol
-weak_symbol (strtol)
-#endif
-
INT
strtol (nptr, endptr, base)
const char *nptr;
@@ -289,3 +286,7 @@ strtol (nptr, endptr, base)
{
return INTERNAL (strtol) (nptr, endptr, base, 0);
}
+
+#ifdef weak_symbol
+weak_symbol (strtol)
+#endif