diff options
author | Matthew Hoops | 2012-03-07 21:58:08 -0500 |
---|---|---|
committer | Johannes Schickel | 2012-03-20 01:06:48 +0100 |
commit | 4d65be826412e8a41fb714f19deb804bfd7599a0 (patch) | |
tree | 868a52c4627fff2f3789aeb018839008795cea3b | |
parent | a658fc660e5932410b91c00d3eef81963ed02972 (diff) | |
download | scummvm-rg350-4d65be826412e8a41fb714f19deb804bfd7599a0.tar.gz scummvm-rg350-4d65be826412e8a41fb714f19deb804bfd7599a0.tar.bz2 scummvm-rg350-4d65be826412e8a41fb714f19deb804bfd7599a0.zip |
COMMON: Add a READ_UINT24 macro
Complements READ_UINT16 and READ_UINT32
-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 |