aboutsummaryrefslogtreecommitdiff
path: root/include/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/string.h b/include/string.h
index b4ccb1b57f..d9a5eebcbe 100644
--- a/include/string.h
+++ b/include/string.h
@@ -72,11 +72,13 @@ libc_hidden_proto (__strndup)
libc_hidden_proto (__strerror_r)
libc_hidden_proto (__strverscmp)
-# ifndef index
-# define index(s, c) (strchr ((s), (c)))
-# endif
-# ifndef rindex
-# define rindex(s, c) (strrchr ((s), (c)))
+# ifndef _ISOMAC
+# ifndef index
+# define index(s, c) (strchr ((s), (c)))
+# endif
+# ifndef rindex
+# define rindex(s, c) (strrchr ((s), (c)))
+# endif
# endif
#endif