aboutsummaryrefslogtreecommitdiff
path: root/string/strrchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/strrchr.c')
-rw-r--r--string/strrchr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/string/strrchr.c b/string/strrchr.c
index b5b4bc6208..47ff08cfa3 100644
--- a/string/strrchr.c
+++ b/string/strrchr.c
@@ -19,9 +19,13 @@
#undef strrchr
+#ifndef STRRCHR
+# define STRRCHR strrchr
+#endif
+
/* Find the last occurrence of C in S. */
char *
-strrchr (const char *s, int c)
+STRRCHR (const char *s, int c)
{
const char *found, *p;