[PATCH v3] Remove defines to builtins in string2.h
Florian Weimer
fw@deneb.enyo.de
Tue Nov 22 20:53:00 GMT 2016
* Wilco Dijkstra:
> -#ifndef _HAVE_STRING_ARCH_strchr
> -# define strchr(s, c) __builtin_strchr (s, c)
> -#endif
Current master has this:
#ifndef _HAVE_STRING_ARCH_strchr
extern void *__rawmemchr (const void *__s, int __c);
# define strchr(s, c) \
(__extension__ (__builtin_constant_p (c) && !__builtin_constant_p (s) \
&& (c) == '\0' \
? (char *) __rawmemchr (s, c) \
: __builtin_strchr (s, c)))
#endif
So I'm afraid the patch doesn't apply.
More information about the Libc-alpha
mailing list