]> Savannah Git Hosting - gnulib.git/commitdiff
strpbrk: Make it possible to namespace the defined symbol.
authorBruno Haible <bruno@clisp.org>
Fri, 5 Oct 2018 19:54:56 +0000 (21:54 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 5 Oct 2018 19:54:56 +0000 (21:54 +0200)
* lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.

ChangeLog
lib/strpbrk.c

index 10c3cd86815cf374e165d78394d11c6a6fd97b99..e3688b6ea0597cc8e4ceb6c6a72b34be2e78f0a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-05  Bruno Haible  <bruno@clisp.org>
+
+       strpbrk: Make it possible to namespace the defined symbol.
+       * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
+
 2018-10-05  Bruno Haible  <bruno@clisp.org>
 
        strcspn: Make it possible to namespace the defined symbol.
index 1cdb2db79970f21752b29fbe2a3072ac9e12bb5d..8aeefb99452edad27dfa1400d6b0eb2d466b2112 100644 (file)
@@ -22,7 +22,9 @@
 #include <stddef.h>
 #include <string.h>
 
-#undef strpbrk
+#if _LIBC
+# undef strpbrk
+#endif
 
 /* Find the first occurrence in S of any character in ACCEPT.  */
 char *