svn-id: r21496
This commit is contained in:
Max Horn 2006-03-29 12:09:15 +00:00
parent f6e6017d96
commit 70040aed47

View File

@ -35,10 +35,6 @@
#include "config.h"
#endif
#ifndef PI
#define PI 3.14159265358979323846
#endif
// make sure we really are compiling for WIN32
#ifndef WIN32
#undef _MSC_VER
@ -81,16 +77,15 @@
#define END_PACK_STRUCTS pack(pop)
#if defined(_WIN32_WCE) && _WIN32_WCE < 300
#define CDECL __cdecl
#define SMALL_SCREEN_DEVICE
#endif
#elif defined(__MINGW32__)
#define scumm_stricmp stricmp
#define scumm_strnicmp strnicmp
#define SCUMM_LITTLE_ENDIAN
#ifndef _HEAPOK
@ -155,13 +150,13 @@
#define SCUMM_NEED_ALIGNMENT
#endif
#if defined(__GNUC__)
#else
#if !defined(__GNUC__)
#define START_PACK_STRUCTS pack (1)
#define END_PACK_STRUCTS pack ()
#endif
#elif defined(__PALMOS_TRAPS__) || defined (__PALMOS_ARMLET__) // PALMOS
#elif defined(__PALMOS_TRAPS__) || defined (__PALMOS_ARMLET__)
#include "palmversion.h"
#include "globals.h"
#include "extend.h"
@ -176,6 +171,7 @@
#else
#define SCUMM_LITTLE_ENDIAN
#endif
#define SCUMM_NEED_ALIGNMENT
typedef unsigned char byte;
@ -197,6 +193,7 @@
#endif
#elif defined(__MORPHOS__)
#define scumm_stricmp stricmp
#define scumm_strnicmp strnicmp
@ -212,8 +209,7 @@
typedef signed short int16;
typedef signed long int32;
#if defined(__GNUC__)
#else
#if !defined(__GNUC__)
#define START_PACK_STRUCTS pack (1)
#define END_PACK_STRUCTS pack ()
#endif
@ -223,6 +219,7 @@
#define scumm_stricmp strcasecmp
#define scumm_strnicmp strncasecmp
#define SCUMM_LITTLE_ENDIAN
#define SCUMM_NEED_ALIGNMENT
@ -238,13 +235,14 @@
#define START_PACK_STRUCTS pack(push, 1)
#define END_PACK_STRUCTS pack(pop)
#elif defined __GP32__ //ph0x
#define SCUMM_NEED_ALIGNMENT
#define SCUMM_LITTLE_ENDIAN
#elif defined(__GP32__)
#define scumm_stricmp stricmp
#define scumm_strnicmp strnicmp
#define SCUMM_LITTLE_ENDIAN
#define SCUMM_NEED_ALIGNMENT
#define _HEAPOK 0
typedef unsigned char byte;
@ -258,13 +256,15 @@
#define START_PACK_STRUCTS pack(push, 1)
#define END_PACK_STRUCTS pack(pop)
#elif defined __PLAYSTATION2__
#define SCUMM_NEED_ALIGNMENT
#define SCUMM_LITTLE_ENDIAN
#elif defined(__PLAYSTATION2__)
#define scumm_stricmp strcasecmp
#define scumm_strnicmp strncasecmp
#define SCUMM_LITTLE_ENDIAN
#define SCUMM_NEED_ALIGNMENT
typedef unsigned char byte;
typedef unsigned char uint8;
typedef unsigned short uint16;
@ -274,9 +274,6 @@
typedef signed short int16;
typedef signed int int32;
typedef unsigned long uint64;
typedef signed long int64;
#define START_PACK_STRUCTS pack(push, 1)
#define END_PACK_STRUCTS pack(pop)
@ -297,14 +294,14 @@
#define fprintf ps2_fprintf
#define fsize(a) ps2_fsize(a)
extern void ps2_disableHandleCaching(void);
#elif defined(__PSP__)
#define SCUMM_NEED_ALIGNMENT
#define SCUMM_LITTLE_ENDIAN
#define scumm_stricmp strcasecmp
#define scumm_strnicmp strncasecmp
#define SCUMM_LITTLE_ENDIAN
#define SCUMM_NEED_ALIGNMENT
typedef unsigned char byte;
typedef unsigned char uint8;
typedef unsigned short uint16;
@ -314,39 +311,38 @@
typedef signed short int16;
typedef signed int int32;
typedef unsigned long uint64;
#define START_PACK_STRUCTS pack(push, 1)
#define END_PACK_STRUCTS pack(pop)
#elif defined(__amigaos4__)
#include <exec/types.h>
#define scumm_stricmp strcasecmp
#define scumm_strnicmp strncasecmp
#define SCUMM_BIG_ENDIAN
// You need to set this manually if necessary
#define SCUMM_NEED_ALIGNMENT
#ifndef HAVE_CONFIG_H
typedef unsigned char byte;
typedef unsigned int uint;
#endif
#elif defined __SYMBIAN32__ // AnotherGuest / Sprawl / SumthinWicked
#elif defined(__SYMBIAN32__)
#define scumm_stricmp strcasecmp
#define scumm_strnicmp strncasecmp
#define CDECL
#define SCUMM_NEED_ALIGNMENT
#define SCUMM_LITTLE_ENDIAN
#define SCUMM_NEED_ALIGNMENT
#define CDECL
#define CHECK_HEAP
#define SMALL_SCREEN_DEVICE
#define FORCEINLINE inline
#define _HEAPOK 0
typedef unsigned char byte;
typedef unsigned char uint8;
typedef unsigned short int uint16;
@ -358,8 +354,11 @@
#define START_PACK_STRUCTS pack(push, 1)
#define END_PACK_STRUCTS pack(pop)
#else
#error No system type defined
#endif
@ -408,6 +407,10 @@
#define STRINGBUFLEN 1024
#endif
#ifndef PI
#define PI 3.14159265358979323846
#endif
//
// Overlay color type (FIXME: shouldn't be declared here)