From: Bruno Haible Date: Fri, 5 Oct 2018 19:54:14 +0000 (+0200) Subject: strcspn: Make it possible to namespace the defined symbol. X-Git-Tag: v1.0~5373 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=f6b7c8766bee0d297235771cbc91fe2e8353db34;p=gnulib.git strcspn: Make it possible to namespace the defined symbol. * lib/strcspn.c (strcspn): Don't undefine outside of glibc. --- diff --git a/ChangeLog b/ChangeLog index 8d4d249829..10c3cd8681 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-10-05 Bruno Haible + + strcspn: Make it possible to namespace the defined symbol. + * lib/strcspn.c (strcspn): Don't undefine outside of glibc. + 2018-10-05 Bruno Haible raise: Make it possible to namespace the defined symbol. diff --git a/lib/strcspn.c b/lib/strcspn.c index 0e986033c1..735b91b066 100644 --- a/lib/strcspn.c +++ b/lib/strcspn.c @@ -22,7 +22,9 @@ #include #include -#undef strcspn +#if _LIBC +# undef strcspn +#endif /* Return the length of the maximum initial segment of S which contains no characters from REJECT. */