>From f6b7c8766bee0d297235771cbc91fe2e8353db34 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 5 Oct 2018 21:54:14 +0200 Subject: [PATCH 4/5] 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 8d4d249..10c3cd8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 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. * lib/raise.c (raise): Undefine only after the replacement function has been defined. diff --git a/lib/strcspn.c b/lib/strcspn.c index 0e98603..735b91b 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.7.4