bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: memrchr speed


From: Bruno Haible
Subject: Re: memrchr speed
Date: Sun, 27 Apr 2008 12:41:30 +0200
User-agent: KMail/1.5.4

Also, the memrchr module does not support the renaming in config.h that
is used to guarantee namespace cleanliness of shared libraries. E.g.
  #define memrchr libfoo_memrchr

Fixed like this:


2008-04-27  Bruno Haible  <address@hidden>

        Allow local renaming in config.h.
        * lib/memrchr.c (memrchr): Don't undefine outside libc.

--- lib/memrchr.c.orig  2008-04-27 12:27:02.000000000 +0200
+++ lib/memrchr.c       2008-04-27 12:26:16.000000000 +0200
@@ -35,7 +35,9 @@
 #include "intprops.h"
 
 #undef __memrchr
-#undef memrchr
+#ifdef _LIBC
+# undef memrchr
+#endif
 
 #ifndef weak_alias
 # define __memrchr memrchr





reply via email to

[Prev in Thread] Current Thread [Next in Thread]