From 497e902f95e415efabfa048ab750a89edbe4370f Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Mon, 14 Nov 2005 23:02:12 +0000 Subject: undef functions needed for usage within libc --- libc/string/powerpc/memcpy.c | 1 + libc/string/powerpc/memmove.c | 1 + libc/string/powerpc/memset.c | 2 ++ 3 files changed, 4 insertions(+) (limited to 'libc') diff --git a/libc/string/powerpc/memcpy.c b/libc/string/powerpc/memcpy.c index e731f3578..34573b29f 100644 --- a/libc/string/powerpc/memcpy.c +++ b/libc/string/powerpc/memcpy.c @@ -21,6 +21,7 @@ #include +#undef memcpy void attribute_hidden *__memcpy(void *to, const void *from, size_t n) /* PPC can do pre increment and load/store, but not post increment and load/store. Therefore use *++ptr instead of *ptr++. */ diff --git a/libc/string/powerpc/memmove.c b/libc/string/powerpc/memmove.c index 28b1da270..b5b70c9fd 100644 --- a/libc/string/powerpc/memmove.c +++ b/libc/string/powerpc/memmove.c @@ -21,6 +21,7 @@ #include +#undef memmove void attribute_hidden *__memmove(void *to, const void *from, size_t n) { unsigned long rem, chunks, tmp1, tmp2; diff --git a/libc/string/powerpc/memset.c b/libc/string/powerpc/memset.c index c5903afa6..372047797 100644 --- a/libc/string/powerpc/memset.c +++ b/libc/string/powerpc/memset.c @@ -31,6 +31,8 @@ static inline int expand_byte_word(int c){ : "=r" (c) : "0" (c)); return c; } + +#undef memset void attribute_hidden *__memset(void *to, int c, size_t n) { unsigned long rem, chunks; -- cgit v1.2.3