From 6ff91798a8946ff75fd26f1dabd692c6a8a3eb02 Mon Sep 17 00:00:00 2001 From: Benjamin-Dobell Date: Sun, 5 Dec 2010 20:20:16 +1100 Subject: Changed PPC preprocessor macro to WORDS_BIGENDIAN and added macro to configure.ac that automatically defines WORDS_BIGENDIAN when appropriate. modified: .DS_Store modified: configure.ac modified: source/.DS_Store modified: source/InboundPacket.h modified: source/OutboundPacket.h --- heimdall/source/OutboundPacket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'heimdall/source/OutboundPacket.h') diff --git a/heimdall/source/OutboundPacket.h b/heimdall/source/OutboundPacket.h index d433d84..dbe3f8a 100644 --- a/heimdall/source/OutboundPacket.h +++ b/heimdall/source/OutboundPacket.h @@ -32,7 +32,7 @@ namespace Heimdall void PackInteger(unsigned int offset, unsigned int value) { -#ifdef PPC +#ifdef WORDS_BIGENDIAN data[offset] = (value & 0xFF000000) >> 24; data[offset + 1] = (value & 0x00FF0000) >> 16; data[offset + 2] = (value & 0x0000FF00) >> 8; @@ -48,7 +48,7 @@ namespace Heimdall void PackShort(unsigned int offset, unsigned short value) { -#ifdef PPC +#ifdef WORDS_BIGENDIAN data[offset] = (value & 0xFF00) >> 8; data[offset + 1] = value & 0x00FF; #else -- cgit v1.1