From: Bruno Haible Date: Fri, 5 Oct 2018 19:54:56 +0000 (+0200) Subject: strpbrk: Make it possible to namespace the defined symbol. X-Git-Tag: v1.0~5372 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=4719603f57f33099804664f691a072b5033fb11c;p=gnulib.git strpbrk: Make it possible to namespace the defined symbol. * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc. --- 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 *