diff options
author | Johannes Schickel | 2015-01-04 21:07:36 +0100 |
---|---|---|
committer | Johannes Schickel | 2015-01-04 21:09:32 +0100 |
commit | eb4d1a69255b06f93c497aabd9cf950bfe0756ec (patch) | |
tree | 5a27fa484794213ec7e886a13b58489a545fe2a4 | |
parent | f1e58efe90e2c3ae6740a41db4642b3e47c0c81f (diff) | |
download | scummvm-rg350-eb4d1a69255b06f93c497aabd9cf950bfe0756ec.tar.gz scummvm-rg350-eb4d1a69255b06f93c497aabd9cf950bfe0756ec.tar.bz2 scummvm-rg350-eb4d1a69255b06f93c497aabd9cf950bfe0756ec.zip |
COMMON: Add missing readUint64/readSint64 to ReadStreamEndian.
-rw-r--r-- | common/stream.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/common/stream.h b/common/stream.h index 3021df304c..abe5192b70 100644 --- a/common/stream.h +++ b/common/stream.h @@ -517,6 +517,14 @@ public: return (_bigEndian) ? TO_BE_32(val) : TO_LE_32(val); } +#ifdef HAVE_INT64 + uint64 readUint64() { + uint64 val; + read(&val, 8); + return (_bigEndian) ? TO_BE_64(val) : TO_LE_64(val); + } +#endif + FORCEINLINE int16 readSint16() { return (int16)readUint16(); } @@ -524,6 +532,12 @@ public: FORCEINLINE int32 readSint32() { return (int32)readUint32(); } + +#ifdef HAVE_INT64 + FORCEINLINE int64 readSint64() { + return (int64)readUint64(); + } +#endif }; /** |