summaryrefslogtreecommitdiffstats
path: root/gettext-tools/lib/strtoul.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-02-13 21:38:56 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:09:15 +0200
commit758bc235cbc5f24569b76f7f6071a313dfb9bc29 (patch)
tree90a9b72e0a31ed26cdbab02f3078a2b4f8c9f6de /gettext-tools/lib/strtoul.c
parentd5708bd21060bf67f97e5dfe3bc6cb88f2ecea8e (diff)
downloadexternal_gettext-758bc235cbc5f24569b76f7f6071a313dfb9bc29.zip
external_gettext-758bc235cbc5f24569b76f7f6071a313dfb9bc29.tar.gz
external_gettext-758bc235cbc5f24569b76f7f6071a313dfb9bc29.tar.bz2
Move lib/strtoul.c to gettext-tools/lib/strtoul.c.
Diffstat (limited to 'gettext-tools/lib/strtoul.c')
-rw-r--r--gettext-tools/lib/strtoul.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/gettext-tools/lib/strtoul.c b/gettext-tools/lib/strtoul.c
new file mode 100644
index 0000000..d39643d
--- /dev/null
+++ b/gettext-tools/lib/strtoul.c
@@ -0,0 +1,31 @@
+/* Copyright (C) 1991, 1997, 2002 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@gnu.org.
+
+ 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.
+
+ 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, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ USA. */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#if !HAVE_STRTOUL
+
+# define UNSIGNED 1
+
+# include <strtol.c>
+
+#endif