diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/string.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/string.h b/include/string.h index b4ccb1b..d9a5eeb 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 |