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 57496e25776647e118dc127031d0dd7bf141a1d9..2efe5a6c78063e744d01d865c6fba9e556f45e1f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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'.
index f4467ac27a9fbab78b7fe2cab85886e720709a75..2796dea3f5b4ce19c6e1225b5b51fdab75be590d 100644 (file)
@@ -35,7 +35,9 @@
 #include "intprops.h"
 
 #undef __memrchr
-#undef memrchr
+#ifdef _LIBC
+# undef memrchr
+#endif
 
 #ifndef weak_alias
 # define __memrchr memrchr