changeset 8050:6cec54d3ab2f

* lib/memrchr.c: Assume <string.h> unconditionally, to pull in declaration.
author Eric Blake <ebb9@byu.net>
date Tue, 30 Jan 2007 00:25:25 +0000
parents 93b9f2a87f93
children 9c2b0396b27c
files ChangeLog lib/memrchr.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-29  Eric Blake  <ebb9@byu.net>
+
+	* lib/memrchr.c: Assume <string.h> unconditionally, to pull in
+	declaration.
+
 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
 
 	* lib/strptime.h (strptime): Use 'restrict' for args where
@@ -201,7 +206,7 @@
 	(func_create_testdir): Set for_test to true.
 
 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
-            Bruno Haible  <bruno@clisp.org>
+	    Bruno Haible  <bruno@clisp.org>
 
 	* modules/strcasestr (Files): Remove lib/strcasestr.h.
 	(Depends-on): Add string.
--- a/lib/memrchr.c
+++ b/lib/memrchr.c
@@ -24,13 +24,13 @@
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
 #if defined _LIBC
-# include <string.h>
 # include <memcopy.h>
 #else
 # include <config.h>
 # define reg_char char
 #endif
 
+#include <string.h>
 #include <limits.h>
 
 #undef __memrchr