changeset 9985:c7d407e063f8

Allow local renaming in config.h.
author Bruno Haible <bruno@clisp.org>
date Sun, 27 Apr 2008 12:41:21 +0200
parents 17bfa9870663
children f4eb568e254e
files ChangeLog lib/memrchr.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Apr 27 12:37:28 2008 +0200
+++ b/ChangeLog	Sun Apr 27 12:41:21 2008 +0200
@@ -1,3 +1,8 @@
+2008-04-27  Bruno Haible  <bruno@clisp.org>
+
+	Allow local renaming in config.h.
+	* lib/memrchr.c (memrchr): Don't undefine outside libc.
+
 2008-04-27  Bruno Haible  <bruno@clisp.org>
 
 	* lib/memchr.c (__memchr): Change type of 'i'.
--- a/lib/memrchr.c	Sun Apr 27 12:37:28 2008 +0200
+++ b/lib/memrchr.c	Sun Apr 27 12:41:21 2008 +0200
@@ -35,7 +35,9 @@
 #include "intprops.h"
 
 #undef __memrchr
-#undef memrchr
+#ifdef _LIBC
+# undef memrchr
+#endif
 
 #ifndef weak_alias
 # define __memrchr memrchr