From f6b7c8766bee0d297235771cbc91fe2e8353db34 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 5 Oct 2018 21:54:14 +0200 Subject: [PATCH] strcspn: Make it possible to namespace the defined symbol. * lib/strcspn.c (strcspn): Don't undefine outside of glibc. --- ChangeLog | 5 +++++ lib/strcspn.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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. */ -- 2.39.5