aboutsummaryrefslogtreecommitdiffstats
path: root/heimdall/source/InboundPacket.h
diff options
context:
space:
mode:
authorBenjamin-Dobell <benjamin.dobell+github@glassechidna.com.au>2010-12-05 20:20:16 +1100
committerBenjamin-Dobell <benjamin.dobell+github@glassechidna.com.au>2010-12-05 20:20:16 +1100
commit6ff91798a8946ff75fd26f1dabd692c6a8a3eb02 (patch)
treef7ae69eba6347c0d898ec06cbfadee6d14a391f1 /heimdall/source/InboundPacket.h
parent7675cd8a8714406193c28331c9956699ff7d4226 (diff)
downloadexternal_heimdall-6ff91798a8946ff75fd26f1dabd692c6a8a3eb02.zip
external_heimdall-6ff91798a8946ff75fd26f1dabd692c6a8a3eb02.tar.gz
external_heimdall-6ff91798a8946ff75fd26f1dabd692c6a8a3eb02.tar.bz2
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
Diffstat (limited to 'heimdall/source/InboundPacket.h')
-rw-r--r--heimdall/source/InboundPacket.h2
1 files changed, 1 insertions, 1 deletions
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