summaryrefslogtreecommitdiff
path: root/libc/string
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-14 23:02:12 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-14 23:02:12 +0000
commit497e902f95e415efabfa048ab750a89edbe4370f (patch)
treea4e4ac6fabb9f596074aa3a0878babdaa9d74a4e /libc/string
parent76cad786c8cd778a890ceb936b301d63d64093e4 (diff)
undef functions needed for usage within libc
Diffstat (limited to 'libc/string')
-rw-r--r--libc/string/powerpc/memcpy.c1
-rw-r--r--libc/string/powerpc/memmove.c1
-rw-r--r--libc/string/powerpc/memset.c2
3 files changed, 4 insertions, 0 deletions
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 <string.h>
+#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 <string.h>
+#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;