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

ChangeLog
lib/strcspn.c

index 8d4d249829da1b597e8d16882aa33c7d8966bd0d..10c3cd86815cf374e165d78394d11c6a6fd97b99 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-05  Bruno Haible  <bruno@clisp.org>
+
+       strcspn: Make it possible to namespace the defined symbol.
+       * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
+
 2018-10-05  Bruno Haible  <bruno@clisp.org>
 
        raise: Make it possible to namespace the defined symbol.
index 0e986033c13d01cb544f51d4131a6979031cbd81..735b91b066f4e4a8ccfc6cd4bc0594183f649a9f 100644 (file)
@@ -22,7 +22,9 @@
 #include <stddef.h>
 #include <string.h>
 
-#undef strcspn
+#if _LIBC
+# undef strcspn
+#endif
 
 /* Return the length of the maximum initial segment of S
    which contains no characters from REJECT.  */