Allow local renaming in config.h.
authorBruno Haible <bruno@clisp.org>
Sun, 27 Apr 2008 10:41:21 +0000 (12:41 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 27 Apr 2008 10:41:21 +0000 (12:41 +0200)
ChangeLog
lib/memrchr.c

index 57496e2..2efe5a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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'.
        * lib/memchr2.c (memchr2): Likewise.
 
index f4467ac..2796dea 100644 (file)
@@ -35,7 +35,9 @@
 #include "intprops.h"
 
 #undef __memrchr
-#undef memrchr
+#ifdef _LIBC
+# undef memrchr
+#endif
 
 #ifndef weak_alias
 # define __memrchr memrchr