diff options
author | Kari Salminen | 2009-03-16 20:57:17 +0000 |
---|---|---|
committer | Kari Salminen | 2009-03-16 20:57:17 +0000 |
commit | 9dc2f16f16e4a76a6c957af6bbfc8272736e1512 (patch) | |
tree | dc1a5d7a1681c770fe77aeac84ccdc87a6fa2ddc /engines/cine | |
parent | 739a31db124ed568de9eddcabae87b9fb326a1dd (diff) | |
download | scummvm-rg350-9dc2f16f16e4a76a6c957af6bbfc8272736e1512.tar.gz scummvm-rg350-9dc2f16f16e4a76a6c957af6bbfc8272736e1512.tar.bz2 scummvm-rg350-9dc2f16f16e4a76a6c957af6bbfc8272736e1512.zip |
Prefix Cine's endian types with CINE_ so they don't clash with already defined LITTLE_ENDIAN and/or BIG_ENDIAN on some platforms.
svn-id: r39453
Diffstat (limited to 'engines/cine')
-rw-r--r-- | engines/cine/pal.cpp | 8 | ||||
-rw-r--r-- | engines/cine/pal.h | 11 |
2 files changed, 11 insertions, 8 deletions
diff --git a/engines/cine/pal.cpp b/engines/cine/pal.cpp index 7f421e6722..5d1637084e 100644 --- a/engines/cine/pal.cpp +++ b/engines/cine/pal.cpp @@ -171,11 +171,11 @@ byte shiftByteLeft(const byte value, const signed shiftLeft) { /*! \brief Is given endian type big endian? (Handles native endian type too, otherwise this would be trivial). */ bool isBigEndian(const EndianType endianType) { - assert(endianType == NATIVE_ENDIAN || endianType == LITTLE_ENDIAN || endianType == BIG_ENDIAN); + assert(endianType == CINE_NATIVE_ENDIAN || endianType == CINE_LITTLE_ENDIAN || endianType == CINE_BIG_ENDIAN); // Handle explicit little and big endian types here - if (endianType != NATIVE_ENDIAN) { - return (endianType == BIG_ENDIAN); + if (endianType != CINE_NATIVE_ENDIAN) { + return (endianType == CINE_BIG_ENDIAN); } // Handle native endian type here @@ -212,7 +212,7 @@ uint Palette::colorCount() const { } const EndianType Palette::endianType() const { - return (_bigEndian ? BIG_ENDIAN : LITTLE_ENDIAN); + return (_bigEndian ? CINE_BIG_ENDIAN : CINE_LITTLE_ENDIAN); } Graphics::PixelFormat Palette::colorFormat() const { diff --git a/engines/cine/pal.h b/engines/cine/pal.h index f7c7dee354..e32990a88d 100644 --- a/engines/cine/pal.h +++ b/engines/cine/pal.h @@ -41,11 +41,14 @@ static const Graphics::PixelFormat kSystemPalFormat = {4, 0, 0, 0, 8, 0, 8, 16, /*! \brief Endian types. Used at least by Palette class's load and save functions. * TODO: Move somewhere more general as this is definitely not Cine-engine specific + * + * NOTE: It seems LITTLE_ENDIAN and/or BIG_ENDIAN were defined already on some platforms so + * therefore renamed the enumerations to something not clashing by giving them "CINE_"-prefixes. */ enum EndianType { - NATIVE_ENDIAN, - LITTLE_ENDIAN, - BIG_ENDIAN + CINE_NATIVE_ENDIAN, + CINE_LITTLE_ENDIAN, + CINE_BIG_ENDIAN }; struct PalEntry { @@ -111,7 +114,7 @@ public: uint colorCount() const; /*! \brief The original endian type in which this palette was loaded. - * \note This will always return either BIG_ENDIAN or LITTLE_ENDIAN (So no NATIVE_ENDIAN). + * \note This will always return either CINE_BIG_ENDIAN or CINE_LITTLE_ENDIAN (So no CINE_NATIVE_ENDIAN). */ const EndianType endianType() const; |