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/InboundPacket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'heimdall/source/InboundPacket.h') diff --git a/heimdall/source/InboundPacket.h b/heimdall/source/InboundPacket.h index bf393fa..6ff3087 100644 --- a/heimdall/source/InboundPacket.h +++ b/heimdall/source/InboundPacket.h @@ -37,7 +37,7 @@ namespace Heimdall int UnpackInteger(int offset) { -#ifdef PPC +#ifdef WORDS_BIGENDIAN int value = (data[offset] << 24) | (data[offset + 1] << 16) | (data[offset + 2] << 8) | data[offset + 3]; #else -- cgit v1.1