about summary refs log tree commit diff
path: root/string/strspn.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/strspn.c')
-rw-r--r--string/strspn.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/string/strspn.c b/string/strspn.c
index 37e8161a28..c2d6364752 100644
--- a/string/strspn.c
+++ b/string/strspn.c
@@ -18,13 +18,14 @@
 #include <string.h>
 
 #undef strspn
+#ifndef STRSPN
+#define STRSPN strspn
+#endif
 
 /* Return the length of the maximum initial segment
    of S which contains only characters in ACCEPT.  */
 size_t
-strspn (s, accept)
-     const char *s;
-     const char *accept;
+STRSPN (const char *s, const char *accept)
 {
   const char *p;
   const char *a;