[rtems-libbsd commit] rtems-bsd-endian.h: Fix warning on PowerPC

Sebastian Huber sebh at rtems.org
Wed Dec 4 12:37:35 UTC 2013


Module:    rtems-libbsd
Branch:    master
Commit:    162d615ff3946ffed337ca395fc55dc0e06e2283
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=162d615ff3946ffed337ca395fc55dc0e06e2283

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Nov 15 15:15:36 2013 +0100

rtems-bsd-endian.h: Fix warning on PowerPC

---

 rtemsbsd/include/machine/rtems-bsd-endian.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/rtemsbsd/include/machine/rtems-bsd-endian.h b/rtemsbsd/include/machine/rtems-bsd-endian.h
index 006a9f3..16c66b7 100644
--- a/rtemsbsd/include/machine/rtems-bsd-endian.h
+++ b/rtemsbsd/include/machine/rtems-bsd-endian.h
@@ -46,7 +46,11 @@
 #if __BSD_VISIBLE
 
 #define _BYTE_ORDER BYTE_ORDER
+
+/* On PowerPC this is a GCC built-in define */
+#undef _BIG_ENDIAN
 #define _BIG_ENDIAN BIG_ENDIAN
+
 #define _LITTLE_ENDIAN LITTLE_ENDIAN
 
 #if BYTE_ORDER == BIG_ENDIAN




More information about the vc mailing list