diff options
author | Kostas Nakos | 2006-06-10 11:26:47 +0000 |
---|---|---|
committer | Kostas Nakos | 2006-06-10 11:26:47 +0000 |
commit | 92ad46734c2b98f70f3baaf70603e3e5ffde120d (patch) | |
tree | 0f5edbe2f34bbec67b1c2735b61cae30e868156a | |
parent | a6a98c0009a9b8c16680db289fd453bff27d8447 (diff) | |
download | scummvm-rg350-92ad46734c2b98f70f3baaf70603e3e5ffde120d.tar.gz scummvm-rg350-92ad46734c2b98f70f3baaf70603e3e5ffde120d.tar.bz2 scummvm-rg350-92ad46734c2b98f70f3baaf70603e3e5ffde120d.zip |
added CE port definitions section
svn-id: r23008
-rw-r--r-- | common/scummsys.h | 50 |
1 files changed, 38 insertions, 12 deletions
diff --git a/common/scummsys.h b/common/scummsys.h index 4571e1bdfb..a3553b3b60 100644 --- a/common/scummsys.h +++ b/common/scummsys.h @@ -70,7 +70,7 @@ #endif -#if defined(_MSC_VER) && !defined(__SYMBIAN32__) +#if defined(_MSC_VER) && !defined(__SYMBIAN32__) && !defined(_WIN32_WCE) #define scumm_stricmp stricmp #define scumm_strnicmp _strnicmp @@ -256,6 +256,8 @@ #define START_PACK_STRUCTS pack(push, 1) #define END_PACK_STRUCTS pack(pop) + #include "backends/ps2/fileio.h" + #define fopen(a, b) ps2_fopen(a, b) #define fclose(a) ps2_fclose(a) #define fflush(a) ps2_fflush(a) @@ -320,6 +322,41 @@ typedef unsigned long int uint32; typedef signed long int int32; +#elif defined(_WIN32_WCE) + + #define scumm_stricmp stricmp + #define scumm_strnicmp _strnicmp + #define snprintf _snprintf + + #define SCUMM_LITTLE_ENDIAN + + #define START_PACK_STRUCTS pack(push, 1) + #define END_PACK_STRUCTS pack(pop) + + #if defined(CHECK_HEAP) + #undef CHECK_HEAP + #define CHECK_HEAP checkHeap(); + #endif + + #define FORCEINLINE __forceinline + #define NORETURN _declspec(noreturn) + #define PLUGIN_EXPORT __declspec(dllexport) + + #if defined(_WIN32_WCE) && _WIN32_WCE < 300 + #define CDECL __cdecl + #define SMALL_SCREEN_DEVICE + #endif + + typedef signed char int8_t; + typedef signed short int16_t; + typedef unsigned char uint8_t; + typedef unsigned short uint16_t; + + #if !defined(SDL_COMPILEDVERSION) || (SDL_COMPILEDVERSION < 1210) + typedef signed long int32_t; + typedef unsigned long uint32_t; + #endif + #else #error No system type defined @@ -412,16 +449,5 @@ typedef int16 OverlayColor; #endif -#ifdef __PLAYSTATION2__ - // for libmpeg2... - typedef uint8 uint8_t; - typedef uint32 uint32_t; - - // for those replaced fopen/fread/etc functions - typedef unsigned long uint64; - typedef signed long int64; - #include "backends/ps2/fileio.h" -#endif - #endif |