about summary refs log tree commit diff
path: root/string/strlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/strlen.c')
-rw-r--r--string/strlen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/string/strlen.c b/string/strlen.c
index d066bde577..b7fd645429 100644
--- a/string/strlen.c
+++ b/string/strlen.c
@@ -23,10 +23,14 @@
 
 #undef strlen
 
+#ifndef STRLEN
+# define STRLEN strlen
+#endif
+
 /* Return the length of the null-terminated string STR.  Scan for
    the null terminator quickly by testing four bytes at a time.  */
 size_t
-strlen (const char *str)
+STRLEN (const char *str)
 {
   const char *char_ptr;
   const unsigned long int *longword_ptr;