mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] sandbox-unaligned: better usement of ifdef
@ 2012-09-11  5:30 Alexander Aring
  2012-09-11  5:30 ` [PATCH 2/3] sandbox: fix posix_types Alexander Aring
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexander Aring @ 2012-09-11  5:30 UTC (permalink / raw)
  To: barebox

GCC versions below 4.6 don't set __BYTE_ORDER__
with __ORDER_LITTLE_ENDIAN__. So it's better to use
__BYTE_ORDER and __LITTLE_ENDIAN instead.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
 arch/sandbox/include/asm/unaligned.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/sandbox/include/asm/unaligned.h b/arch/sandbox/include/asm/unaligned.h
index 07c1ae4..d02da6e 100644
--- a/arch/sandbox/include/asm/unaligned.h
+++ b/arch/sandbox/include/asm/unaligned.h
@@ -8,7 +8,7 @@
 #include <linux/unaligned/access_ok.h>
 #include <linux/unaligned/generic.h>
 
-#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+#if __BYTE_ORDER == __LITTLE_ENDIAN
 #define get_unaligned __get_unaligned_le
 #define put_unaligned __put_unaligned_le
 #else
-- 
1.7.12


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-09-11  7:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-11  5:30 [PATCH 1/3] sandbox-unaligned: better usement of ifdef Alexander Aring
2012-09-11  5:30 ` [PATCH 2/3] sandbox: fix posix_types Alexander Aring
2012-09-11  5:30 ` [PATCH 3/3] sandbox: add missed case statement Alexander Aring
2012-09-11  7:51 ` [PATCH 1/3] sandbox-unaligned: better usement of ifdef Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox