[git commit] dl-string.h: use __powerpc__ guard instead of powerpc

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Jun 15 12:00:34 UTC 2012


commit: http://git.uclibc.org/uClibc/commit/?id=8eab3dcbe2c9d0eb1d326329cac9dcce84b6f304
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

powerpc guard depends on the compiler options, __powerpc__ should
work all the time.

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 ldso/include/dl-string.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ldso/include/dl-string.h b/ldso/include/dl-string.h
index 361f67a..60dfd2b 100644
--- a/ldso/include/dl-string.h
+++ b/ldso/include/dl-string.h
@@ -142,7 +142,7 @@ static __always_inline int _dl_memcmp(const void *s1, const void *s2, size_t len
 	return 0;
 }
 
-#if defined(powerpc)
+#if defined(__powerpc__)
 /* Will generate smaller and faster code due to loop unrolling.*/
 static __always_inline void * _dl_memset(void *to, int c, size_t n)
 {


More information about the uClibc-cvs mailing list