Its <string.h> defines a memchr macro to help inlining.
* lib/string.in.h (memchr): #undef before #defining.
2020-12-13 Paul Eggert <eggert@cs.ucla.edu>
+ string: port memchr macro to AIX 7.2 XLC
+ Its <string.h> defines a memchr macro to help inlining.
+ * lib/string.in.h (memchr): #undef before #defining.
+
canonicalize: fix AIX test failures
Problem reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
#if @GNULIB_MEMCHR@
# if @REPLACE_MEMCHR@
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+# undef memchr
# define memchr rpl_memchr
# endif
_GL_FUNCDECL_RPL (memchr, void *, (void const *__s, int __c, size_t __n)