diff options
author | Max Horn | 2003-06-14 22:42:14 +0000 |
---|---|---|
committer | Max Horn | 2003-06-14 22:42:14 +0000 |
commit | 5c56edc26f2c1b82f97f37b60f8f75bd16c3fdb4 (patch) | |
tree | 26acb1c1bb5d63720e816509c5244d4544b26103 /common | |
parent | e316699f7b1ea7a8edb73fecfc5fd5eafeb49e97 (diff) | |
download | scummvm-rg350-5c56edc26f2c1b82f97f37b60f8f75bd16c3fdb4.tar.gz scummvm-rg350-5c56edc26f2c1b82f97f37b60f8f75bd16c3fdb4.tar.bz2 scummvm-rg350-5c56edc26f2c1b82f97f37b60f8f75bd16c3fdb4.zip |
fix for LE systems
svn-id: r8487
Diffstat (limited to 'common')
-rw-r--r-- | common/scummsys.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common/scummsys.h b/common/scummsys.h index 5ab6c9f85a..1f2624c413 100644 --- a/common/scummsys.h +++ b/common/scummsys.h @@ -315,8 +315,12 @@ FORCEINLINE uint16 SWAP_BYTES_16(uint16 a) { #if defined(SCUMM_LITTLE_ENDIAN) - #define PROTO_MKID(a) SWAP_BYTES_32(a) - #define PROTO_MKID_BE(a) (a & 0xffffffff) + #define PROTO_MKID(a) \ + ((a >> 24) & 0x000000FF) | \ + ((a >> 8) & 0x0000FF00) | \ + ((a << 8) & 0x00FF0000) | \ + ((a << 24) & 0xFF000000) + #define PROTO_MKID_BE(a) (a & 0xFFFFFFFFUL) #if defined(INVERSE_MKID) # define MKID(a) PROTO_MKID_BE(a) |