diff options
author | Johannes Schickel | 2012-03-19 17:41:40 -0700 |
---|---|---|
committer | Johannes Schickel | 2012-03-19 17:41:40 -0700 |
commit | a2ad364615784c3ceffd5533b548ccff195c32ae (patch) | |
tree | aea75f1efa9d7a6958171deccd1437b2eff2d426 /common | |
parent | 9997493e36ff4a391b485d3794f04e5e1c3cf53f (diff) | |
parent | a7740fb6de17967e0187b606e94d8b7f91951f79 (diff) | |
download | scummvm-rg350-a2ad364615784c3ceffd5533b548ccff195c32ae.tar.gz scummvm-rg350-a2ad364615784c3ceffd5533b548ccff195c32ae.tar.bz2 scummvm-rg350-a2ad364615784c3ceffd5533b548ccff195c32ae.zip |
Merge pull request #199 from clone2727/image-decoder
Introduce an ImageDecoder class
Diffstat (limited to 'common')
-rw-r--r-- | common/endian.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/endian.h b/common/endian.h index 1760dc74b2..394437ec67 100644 --- a/common/endian.h +++ b/common/endian.h @@ -396,4 +396,10 @@ inline uint32 READ_BE_UINT24(const void *ptr) { return (b[0] << 16) | (b[1] << 8) | (b[2]); } +#ifdef SCUMM_LITTLE_ENDIAN +#define READ_UINT24(a) READ_LE_UINT24(a) +#else +#define READ_UINT24(a) READ_BE_UINT24(a) +#endif + #endif |