From: Paul Eggert Date: Thu, 11 Sep 2003 08:52:03 +0000 (+0000) Subject: Remove K&R cruft. X-Git-Tag: cvs-readonly~4499 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=e9238130e4d57cf4b76c67332aa0d8b2a945ca35;p=gnulib.git Remove K&R cruft. --- diff --git a/lib/strnlen.c b/lib/strnlen.c index 617b0aa18..c9f389845 100644 --- a/lib/strnlen.c +++ b/lib/strnlen.c @@ -21,21 +21,7 @@ #endif #undef strnlen -#if HAVE_STRING_H -# if !STDC_HEADERS && HAVE_MEMORY_H -# include -# endif -# include -#else -# include -#endif - -#ifndef HAVE_DECL_MEMCHR -"this configure-time declaration test was not run" -#endif -#if !HAVE_DECL_MEMCHR -char *memchr (); -#endif +#include #undef __strnlen #undef strnlen diff --git a/m4/strnlen.m4 b/m4/strnlen.m4 index 89cca67ea..989ff49f7 100644 --- a/m4/strnlen.m4 +++ b/m4/strnlen.m4 @@ -1,4 +1,4 @@ -# strnlen.m4 serial 2 +# strnlen.m4 serial 3 dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General @@ -24,9 +24,4 @@ AC_DEFUN([gl_FUNC_STRNLEN], ]) # Prerequisites of lib/strnlen.c. -AC_DEFUN([gl_PREREQ_STRNLEN], [ - AC_REQUIRE([AC_HEADER_STDC]) - AC_CHECK_HEADERS_ONCE(memory.h string.h) - AC_CHECK_DECLS(memchr) -]) - +AC_DEFUN([gl_PREREQ_STRNLEN], [:])