diff options
author | Max Horn | 2006-07-09 11:47:17 +0000 |
---|---|---|
committer | Max Horn | 2006-07-09 11:47:17 +0000 |
commit | bea72e9514a5b3ced091d952762a5fa633e27740 (patch) | |
tree | c697df47b449a0952c2bb18f10502cae8ae3d939 /common | |
parent | 51ad5aa7197b3ced348ae37e2bc1586cb25dff3e (diff) | |
download | scummvm-rg350-bea72e9514a5b3ced091d952762a5fa633e27740.tar.gz scummvm-rg350-bea72e9514a5b3ced091d952762a5fa633e27740.tar.bz2 scummvm-rg350-bea72e9514a5b3ced091d952762a5fa633e27740.zip |
Patch #1519399: DS Backend
svn-id: r23452
Diffstat (limited to 'common')
-rw-r--r-- | common/scummsys.h | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/common/scummsys.h b/common/scummsys.h index 3e779d7ee3..8186788c64 100644 --- a/common/scummsys.h +++ b/common/scummsys.h @@ -320,6 +320,33 @@ typedef unsigned long int uint32; typedef signed long int int32; +#elif defined (__DS__) //NeilM + #define CDECL + #define SCUMM_NEED_ALIGNMENT + #define SCUMM_LITTLE_ENDIAN + + #define scumm_stricmp stricmp + #define scumm_strnicmp strnicmp + #define CHECK_HEAP + + #define FORCEINLINE inline + #define NORETURN __attribute__((__noreturn__)) + #define GCC_PACK __attribute__((packed)) + #define _HEAPOK 0 + + #include "nds/jtypes.h" + #include <stdarg.h> + #include <ctype.h> + #include <string.h> + #include <math.h> + #include <time.h> + + #define START_PACK_STRUCTS pack (push, 1) + #define END_PACK_STRUCTS pack(pop) + + #define STRINGBUFLEN 256 + #define SCUMM_LITTLE_ENDIAN + #elif defined(_WIN32_WCE) #define scumm_stricmp stricmp @@ -356,7 +383,6 @@ #endif #else - #error No system type defined #endif |