aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/scicore/decompress0.cpp
diff options
context:
space:
mode:
authorJoost Peters2009-02-21 12:21:15 +0000
committerJoost Peters2009-02-21 12:21:15 +0000
commit3988062776a0b1c3775807b8f733382c4c1d838f (patch)
tree7fcfd90c6e61fa682fbb8a588e0a471e85e46f7f /engines/sci/scicore/decompress0.cpp
parentf069c04c60abf8616b258c9550f31b6b58ece787 (diff)
downloadscummvm-rg350-3988062776a0b1c3775807b8f733382c4c1d838f.tar.gz
scummvm-rg350-3988062776a0b1c3775807b8f733382c4c1d838f.tar.bz2
scummvm-rg350-3988062776a0b1c3775807b8f733382c4c1d838f.zip
replace #ifdef WORDS_BIGENDIAN by SCUMM_BIG_ENDIAN
svn-id: r38689
Diffstat (limited to 'engines/sci/scicore/decompress0.cpp')
-rw-r--r--engines/sci/scicore/decompress0.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/scicore/decompress0.cpp b/engines/sci/scicore/decompress0.cpp
index 4768e033de..0f6411b6a7 100644
--- a/engines/sci/scicore/decompress0.cpp
+++ b/engines/sci/scicore/decompress0.cpp
@@ -231,7 +231,7 @@ int sci0_get_compression_method(Common::ReadStream &stream) {
if ((stream.read(&compressedLength, 2) != 2) || (stream.read(&result_size, 2) != 2) || (stream.read(&compressionMethod, 2) != 2))
return SCI_ERROR_IO_ERROR;
-#ifdef WORDS_BIGENDIAN
+#ifdef SCUMM_BIG_ENDIAN
compressionMethod = GUINT16_SWAP_LE_BE_CONSTANT(compressionMethod);
#endif
@@ -247,7 +247,7 @@ int decompress0(resource_t *result, Common::ReadStream &stream, int sci_version)
if (stream.read(&(result->id), 2) != 2)
return SCI_ERROR_IO_ERROR;
-#ifdef WORDS_BIGENDIAN
+#ifdef SCUMM_BIG_ENDIAN
result->id = GUINT16_SWAP_LE_BE_CONSTANT(result->id);
#endif
result->number = result->id & 0x07ff;
@@ -259,7 +259,7 @@ int decompress0(resource_t *result, Common::ReadStream &stream, int sci_version)
if ((stream.read(&compressedLength, 2) != 2) || (stream.read(&result_size, 2) != 2) || (stream.read(&compressionMethod, 2) != 2))
return SCI_ERROR_IO_ERROR;
-#ifdef WORDS_BIGENDIAN
+#ifdef SCUMM_BIG_ENDIAN
compressedLength = GUINT16_SWAP_LE_BE_CONSTANT(compressedLength);
result_size = GUINT16_SWAP_LE_BE_CONSTANT(result_size);
compressionMethod = GUINT16_SWAP_LE_BE_CONSTANT(compressionMethod);