diff --git a/libkern/string.c b/libkern/string.c index 68cc92b5c..549d101c1 100644 --- a/libkern/string.c +++ b/libkern/string.c @@ -10,7 +10,7 @@ #include -#ifndef HAVE_ARCH_MEMCPY +#if !HAVE_ARCH_MEMCPY void *memcpy(void *dest, const void *src, size_t count) { size_t i; @@ -25,7 +25,7 @@ void *memcpy(void *dest, const void *src, size_t count) } #endif -#ifndef HAVE_ARCH_MEMSET +#if !HAVE_ARCH_MEMSET void *memset(void *dest, int val, size_t count) { size_t i; @@ -40,7 +40,7 @@ void *memset(void *dest, int val, size_t count) } #endif -#ifndef HAVE_ARCH_MEMCMP +#if !HAVE_ARCH_MEMCMP int memcmp(const void *s1, const void *s2, size_t n) { if (n != 0) { @@ -56,7 +56,7 @@ int memcmp(const void *s1, const void *s2, size_t n) } #endif -#ifndef HAVE_ARCH_STRLEN +#if !HAVE_ARCH_STRLEN size_t strlen(const char *str) { size_t len = 0; @@ -71,7 +71,7 @@ size_t strlen(const char *str) } #endif -#ifndef HAVE_ARCH_STRNCPY +#if !HAVE_ARCH_STRNCPY char* strncpy(char *dest, const char *src, size_t n) { size_t i; @@ -90,7 +90,7 @@ char* strncpy(char *dest, const char *src, size_t n) } #endif -#ifndef HAVE_ARCH_STRCPY +#if !HAVE_ARCH_STRCPY char* strcpy(char *dest, const char *src) { size_t i; @@ -106,7 +106,7 @@ char* strcpy(char *dest, const char *src) } #endif -#ifndef HAVE_ARCH_STRCMP +#if !HAVE_ARCH_STRCMP int strcmp(const char *s1, const char *s2) { while (*s1 != '\0' && *s1 == *s2) { @@ -118,7 +118,7 @@ int strcmp(const char *s1, const char *s2) } #endif -#ifndef HAVE_ARCH_STRNCMP +#if !HAVE_ARCH_STRNCMP int strncmp(const char *s1, const char *s2, size_t n) { if (BUILTIN_EXPECT(n == 0, 0))