summaryrefslogtreecommitdiffstats
path: root/heimdall/source/OutboundPacket.h
diff options
context:
space:
mode:
authorBenjamin-Dobell <benjamin.dobell+github@glassechidna.com.au>2010-12-05 10:20:16 +0100
committerBenjamin-Dobell <benjamin.dobell+github@glassechidna.com.au>2010-12-05 10:20:16 +0100
commit6ff91798a8946ff75fd26f1dabd692c6a8a3eb02 (patch)
treef7ae69eba6347c0d898ec06cbfadee6d14a391f1 /heimdall/source/OutboundPacket.h
parentOops the last commit only copied the contents and didn't the directory. (diff)
downloadHeimdall-6ff91798a8946ff75fd26f1dabd692c6a8a3eb02.tar
Heimdall-6ff91798a8946ff75fd26f1dabd692c6a8a3eb02.tar.gz
Heimdall-6ff91798a8946ff75fd26f1dabd692c6a8a3eb02.tar.bz2
Heimdall-6ff91798a8946ff75fd26f1dabd692c6a8a3eb02.tar.lz
Heimdall-6ff91798a8946ff75fd26f1dabd692c6a8a3eb02.tar.xz
Heimdall-6ff91798a8946ff75fd26f1dabd692c6a8a3eb02.tar.zst
Heimdall-6ff91798a8946ff75fd26f1dabd692c6a8a3eb02.zip
Diffstat (limited to 'heimdall/source/OutboundPacket.h')
-rw-r--r--heimdall/source/OutboundPacket.h4
1 files changed, 2 insertions, 2 deletions
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