[Scummvm-cvs-logs] SF.net SVN: scummvm: [21664] scummvm/trunk/common/scummsys.h

wonst719 at users.sourceforge.net wonst719 at users.sourceforge.net
Fri Apr 7 03:41:01 CEST 2006


Revision: 21664
Author:   wonst719
Date:     2006-04-07 03:40:08 -0700 (Fri, 07 Apr 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=21664&view=rev

Log Message:
-----------
Fix compile with GP32 by overriding datatypes.

Modified Paths:
--------------
    scummvm/trunk/common/scummsys.h
Modified: scummvm/trunk/common/scummsys.h
===================================================================
--- scummvm/trunk/common/scummsys.h	2006-04-07 10:38:06 UTC (rev 21663)
+++ scummvm/trunk/common/scummsys.h	2006-04-07 10:40:08 UTC (rev 21664)
@@ -231,11 +231,19 @@
 	#define SCUMM_LITTLE_ENDIAN 
 	#define SCUMM_NEED_ALIGNMENT
 
-	// FIXME: Do you really need to use 'long' on this port? Please replace
-	// this comment with a new comment that states so, and ideally also
-	// explains the reasons briefly.
-	#define SCUMMVM_USE_LONG_INT
+	// Override typenames. uint is already defined by system header files.
+	#define SCUMMVM_DONT_DEFINE_TYPES
+	typedef unsigned char byte;
 
+	typedef unsigned char uint8;
+	typedef signed char int8;
+
+	typedef unsigned short int uint16;
+	typedef signed short int int16;
+
+	typedef unsigned long int uint32;
+	typedef signed long int int32;
+
 	#define START_PACK_STRUCTS pack(push, 1)
 	#define END_PACK_STRUCTS   pack(pop)
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list