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 diff
--- 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'.
--- a/lib/memrchr.c
+++ b/lib/memrchr.c
@@ -35,7 +35,9 @@
#include "intprops.h"
#undef __memrchr
-#undef memrchr
+#ifdef _LIBC
+# undef memrchr
+#endif
#ifndef weak_alias
# define __memrchr memrchr