From 4719603f57f33099804664f691a072b5033fb11c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 5 Oct 2018 21:54:56 +0200 Subject: [PATCH] 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 10c3cd8681..e3688b6ea0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/lib/strpbrk.c b/lib/strpbrk.c index 1cdb2db799..8aeefb9945 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.39.5