From 1c69696a9a8878971c4fa925b074498dab757857 Mon Sep 17 00:00:00 2001 From: Lars Persson Date: Tue, 21 Jun 2005 22:08:21 +0000 Subject: Patches needed to build for SYMBIAN32 WINS/GCC added. Test built for Symbian and run on P910i without any major problems. Test built for MSVC6. Changed parts seems to compile ok but there are some problems with MSVC6 and some of the targets which the EPOC build does n't support (KYRA,SAGA). svn-id: r18430 --- common/scummsys.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'common/scummsys.h') diff --git a/common/scummsys.h b/common/scummsys.h index a0ba3622c1..b1d7c13166 100644 --- a/common/scummsys.h +++ b/common/scummsys.h @@ -38,6 +38,11 @@ #define PI 3.14159265358979323846 #endif +// make sure we really are compiling for WIN32 +#ifndef WIN32 +#undef _MSC_VER +#endif + #if defined(_MSC_VER) #define scumm_stricmp stricmp @@ -289,6 +294,29 @@ typedef unsigned char byte; typedef unsigned int uint; #endif +#elif defined __SYMBIAN32__ // AnotherGuest / Sprawl / SumthinWicked + + #define scumm_stricmp strcasecmp + #define scumm_strnicmp strncasecmp + + #define CDECL + #define SCUMM_NEED_ALIGNMENT + #define SCUMM_LITTLE_ENDIAN + #define CHECK_HEAP + + #define FORCEINLINE inline + #define _HEAPOK 0 + typedef unsigned char byte; + typedef unsigned char uint8; + typedef unsigned short int uint16; + typedef unsigned long int uint32; + typedef unsigned int uint; + typedef signed char int8; + typedef signed short int int16; + typedef signed long int int32; + + #define START_PACK_STRUCTS pack (push,1) + #define END_PACK_STRUCTS pack(pop) #else #error No system type defined #endif -- cgit v1.2.3