diff options
Diffstat (limited to 'libiberty/strncmp.c')
-rw-r--r-- | libiberty/strncmp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libiberty/strncmp.c b/libiberty/strncmp.c index 916c2f07a8a..2fdea25c04b 100644 --- a/libiberty/strncmp.c +++ b/libiberty/strncmp.c @@ -15,6 +15,7 @@ Compares the first @var{n} bytes of two strings, returning a value as #include <ansidecl.h> #include <stddef.h> +#ifndef __APPLE__ int strncmp(const char *s1, const char *s2, register size_t n) { @@ -31,3 +32,4 @@ strncmp(const char *s1, const char *s2, register size_t n) } return 0; } +#endif |