summaryrefslogtreecommitdiffstats
path: root/gettext-tools/lib/strcspn.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2005-01-12 13:08:57 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:12:02 +0200
commitea0ddae4586c84b68c28e868773fc356e2f63c60 (patch)
treec12188c45505552a036c3912e9eeeb395c44916b /gettext-tools/lib/strcspn.c
parentc2a3c5e964b87f871f0e60f925d4c76bafe5ddc9 (diff)
downloadexternal_gettext-ea0ddae4586c84b68c28e868773fc356e2f63c60.zip
external_gettext-ea0ddae4586c84b68c28e868773fc356e2f63c60.tar.gz
external_gettext-ea0ddae4586c84b68c28e868773fc356e2f63c60.tar.bz2
Update 'strcspn' module from gnulib.
Diffstat (limited to 'gettext-tools/lib/strcspn.c')
-rw-r--r--gettext-tools/lib/strcspn.c12
1 files changed, 2 insertions, 10 deletions
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