소스 검색

undef functions needed for usage within libc

Peter S. Mazinger 18 년 전
부모
커밋
497e902f95
3개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      libc/string/powerpc/memcpy.c
  2. 1 0
      libc/string/powerpc/memmove.c
  3. 2 0
      libc/string/powerpc/memset.c

+ 1 - 0
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++. */

+ 1 - 0
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;

+ 2 - 0
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;