>From 4719603f57f33099804664f691a072b5033fb11c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 5 Oct 2018 21:54:56 +0200 Subject: [PATCH 5/5] strpbrk: Make it possible to namespace the defined symbol. * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc. --- ChangeLog | 5 +++++ lib/strpbrk.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 10c3cd8..e3688b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2018-10-05 Bruno Haible + strpbrk: Make it possible to namespace the defined symbol. + * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc. + +2018-10-05 Bruno Haible + strcspn: Make it possible to namespace the defined symbol. * lib/strcspn.c (strcspn): Don't undefine outside of glibc. diff --git a/lib/strpbrk.c b/lib/strpbrk.c index 1cdb2db..8aeefb9 100644 --- a/lib/strpbrk.c +++ b/lib/strpbrk.c @@ -22,7 +22,9 @@ #include #include -#undef strpbrk +#if _LIBC +# undef strpbrk +#endif /* Find the first occurrence in S of any character in ACCEPT. */ char * -- 2.7.4