diff options
author | Benjamin-Dobell <benjamin.dobell+github@glassechidna.com.au> | 2010-12-05 10:20:16 +0100 |
---|---|---|
committer | Benjamin-Dobell <benjamin.dobell+github@glassechidna.com.au> | 2010-12-05 10:20:16 +0100 |
commit | 6ff91798a8946ff75fd26f1dabd692c6a8a3eb02 (patch) | |
tree | f7ae69eba6347c0d898ec06cbfadee6d14a391f1 /heimdall | |
parent | Oops the last commit only copied the contents and didn't the directory. (diff) | |
download | Heimdall-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 '')
-rw-r--r-- | heimdall/.DS_Store | bin | 15364 -> 15364 bytes | |||
-rw-r--r-- | heimdall/configure.ac | 2 | ||||
-rw-r--r-- | heimdall/source/.DS_Store | bin | 15364 -> 15364 bytes | |||
-rw-r--r-- | heimdall/source/InboundPacket.h | 2 | ||||
-rw-r--r-- | heimdall/source/OutboundPacket.h | 4 |
5 files changed, 5 insertions, 3 deletions
diff --git a/heimdall/.DS_Store b/heimdall/.DS_Store Binary files differindex 98a4f97..13c17de 100644 --- a/heimdall/.DS_Store +++ b/heimdall/.DS_Store diff --git a/heimdall/configure.ac b/heimdall/configure.ac index dc1d92d..de3a181 100644 --- a/heimdall/configure.ac +++ b/heimdall/configure.ac @@ -32,4 +32,6 @@ case $host in AC_MSG_ERROR([unsupported operating system]) esac +AC_C_BIGENDIAN + AC_OUTPUT diff --git a/heimdall/source/.DS_Store b/heimdall/source/.DS_Store Binary files differindex b244d9f..94f155f 100644 --- a/heimdall/source/.DS_Store +++ b/heimdall/source/.DS_Store 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
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
|