https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127914
--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
glibc has for C++ in /usr/include/string.h
extern "C++" void *memrchr (void *__s, int __c, size_t __n)
__THROW __asm ("memrchr") __attribute_pure__ __nonnull ((1))
__attr_access ((__read_only__, 1, 3));
extern "C++" const void *memrchr (const void *__s, int __c, size_t __n)
__THROW __asm ("memrchr") __attribute_pure__ __nonnull ((1))
__attr_access ((__read_only__, 1, 3));
But guess that is already handled by the __GNU_LIBRARY__ check. So, I guess it
depends on what musl or android does.