[Scummvm-cvs-logs] scummvm master -> 7865c7821140a2b83a1473c66e90644cbf39a2c9

sev- sev at scummvm.org
Sun Jan 4 20:48:05 CET 2015


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
7865c78211 COMMON: Put more 64-bit stuff under HAVE_INT64


Commit: 7865c7821140a2b83a1473c66e90644cbf39a2c9
    https://github.com/scummvm/scummvm/commit/7865c7821140a2b83a1473c66e90644cbf39a2c9
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2015-01-04T20:47:12+01:00

Commit Message:
COMMON: Put more 64-bit stuff under HAVE_INT64

Changed paths:
    common/stream.h



diff --git a/common/stream.h b/common/stream.h
index 2519950..3021df3 100644
--- a/common/stream.h
+++ b/common/stream.h
@@ -125,10 +125,12 @@ public:
 		write(&value, 4);
 	}
 
+#ifdef HAVE_INT64
 	void writeUint64LE(uint64 value) {
 		value = TO_LE_64(value);
 		write(&value, 8);
 	}
+#endif
 
 	void writeUint16BE(uint16 value) {
 		value = TO_BE_16(value);
@@ -140,10 +142,12 @@ public:
 		write(&value, 4);
 	}
 
+#ifdef HAVE_INT64
 	void writeUint64BE(uint64 value) {
 		value = TO_BE_64(value);
 		write(&value, 8);
 	}
+#endif
 
 	FORCEINLINE void writeSint16LE(int16 value) {
 		writeUint16LE((uint16)value);
@@ -153,9 +157,11 @@ public:
 		writeUint32LE((uint32)value);
 	}
 
+#ifdef HAVE_INT64
 	FORCEINLINE void writeSint64LE(int64 value) {
 		writeUint64LE((uint64)value);
 	}
+#endif
 
 	FORCEINLINE void writeSint16BE(int16 value) {
 		writeUint16BE((uint16)value);
@@ -165,9 +171,11 @@ public:
 		writeUint32BE((uint32)value);
 	}
 
+#ifdef HAVE_INT64
 	FORCEINLINE void writeSint64BE(int64 value) {
 		writeUint64BE((uint64)value);
 	}
+#endif
 
 	/**
 	 * Write the given string to the stream.
@@ -259,6 +267,7 @@ public:
 		return FROM_LE_32(val);
 	}
 
+#ifdef HAVE_INT64
 	/**
 	 * Read an unsigned 64-bit word stored in little endian (LSB first) order
 	 * from the stream and return it.
@@ -271,6 +280,7 @@ public:
 		read(&val, 8);
 		return FROM_LE_64(val);
 	}
+#endif
 
 	/**
 	 * Read an unsigned 16-bit word stored in big endian (MSB first) order
@@ -298,6 +308,7 @@ public:
 		return FROM_BE_32(val);
 	}
 
+#ifdef HAVE_INT64
 	/**
 	 * Read an unsigned 64-bit word stored in big endian (MSB first) order
 	 * from the stream and return it.
@@ -310,6 +321,7 @@ public:
 		read(&val, 8);
 		return FROM_BE_64(val);
 	}
+#endif
 
 	/**
 	 * Read a signed 16-bit word stored in little endian (LSB first) order
@@ -333,6 +345,7 @@ public:
 		return (int32)readUint32LE();
 	}
 
+#ifdef HAVE_INT64
 	/**
 	 * Read a signed 64-bit word stored in little endian (LSB first) order
 	 * from the stream and return it.
@@ -343,6 +356,7 @@ public:
 	FORCEINLINE int64 readSint64LE() {
 		return (int64)readUint64LE();
 	}
+#endif
 
 	/**
 	 * Read a signed 16-bit word stored in big endian (MSB first) order
@@ -366,6 +380,7 @@ public:
 		return (int32)readUint32BE();
 	}
 
+#ifdef HAVE_INT64
 	/**
 	 * Read a signed 64-bit word stored in big endian (MSB first) order
 	 * from the stream and return it.
@@ -376,6 +391,7 @@ public:
 	FORCEINLINE int64 readSint64BE() {
 		return (int64)readUint64BE();
 	}
+#endif
 
 	/**
 	 * Read the specified amount of data into a malloc'ed buffer






More information about the Scummvm-git-logs mailing list