summaryrefslogtreecommitdiffstats
path: root/gettext-tools/lib
diff options
context:
space:
mode:
Diffstat (limited to 'gettext-tools/lib')
-rw-r--r--gettext-tools/lib/ChangeLog4
-rw-r--r--gettext-tools/lib/strcspn.c12
2 files changed, 6 insertions, 10 deletions
diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog
index f717a61..a1a9e2f 100644
--- a/gettext-tools/lib/ChangeLog
+++ b/gettext-tools/lib/ChangeLog
@@ -1,5 +1,9 @@
2005-01-06 Bruno Haible <bruno@clisp.org>
+ * strcspn.c: Update from gnulib.
+
+2005-01-06 Bruno Haible <bruno@clisp.org>
+
* strcasecmp.c: Update from gnulib.
* strncasecmp.c: Update from gnulib.
diff --git a/gettext-tools/lib/strcspn.c b/gettext-tools/lib/strcspn.c
index 2bbd906..33a6628 100644
--- a/gettext-tools/lib/strcspn.c
+++ b/gettext-tools/lib/strcspn.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1994, 1996-1997, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1994, 1996-1997, 2002-2003 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.
@@ -23,15 +23,7 @@
#endif
#include <stddef.h>
-
-#if defined _LIBC || HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-# ifndef strchr
-# define strchr index
-# endif
-#endif
+#include <string.h>
#undef strcspn