diff options
author | Neil Millstone | 2007-10-13 15:40:11 +0000 |
---|---|---|
committer | Neil Millstone | 2007-10-13 15:40:11 +0000 |
commit | 4deb3f1b4fd1b5fc0dd80e7e86273a1d4be0b3e4 (patch) | |
tree | 14cf6f9939b7a700549cd99df704d7b52940e3d6 /backends/platform/ds/arm9/source/portdefs.h | |
parent | 0b1933a51d9f69d563839578b8a8bb03a2bb654c (diff) | |
download | scummvm-rg350-4deb3f1b4fd1b5fc0dd80e7e86273a1d4be0b3e4.tar.gz scummvm-rg350-4deb3f1b4fd1b5fc0dd80e7e86273a1d4be0b3e4.tar.bz2 scummvm-rg350-4deb3f1b4fd1b5fc0dd80e7e86273a1d4be0b3e4.zip |
Fixed a huge number of compile errors, moved over features from 0.10.0 branch.
svn-id: r29203
Diffstat (limited to 'backends/platform/ds/arm9/source/portdefs.h')
-rw-r--r-- | backends/platform/ds/arm9/source/portdefs.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/backends/platform/ds/arm9/source/portdefs.h b/backends/platform/ds/arm9/source/portdefs.h index 91310a1479..b4bd15252a 100644 --- a/backends/platform/ds/arm9/source/portdefs.h +++ b/backends/platform/ds/arm9/source/portdefs.h @@ -23,7 +23,7 @@ #ifndef _PORTDEFS_H_ #define _PORTDEFS_H_ - +/* typedef unsigned char u8; typedef signed char s8; @@ -32,8 +32,10 @@ typedef signed short s16; typedef unsigned int u32; typedef signed int s32; +*/ + +#include "nds/jtypes.h" -//#define double float // Somebody removed these from scummsys.h, but they're still required, so I'm adding them here // in the hope that they'll stay. @@ -45,11 +47,18 @@ typedef signed int s32; #include <math.h> #include <time.h> +#define double float #define CT_NO_TRANSPARENCY -#include "scummconsole.h" +#ifdef __cplusplus +extern "C" { +#endif +void consolePrintf(const char* s, ...); +#ifdef __cplusplus +} +#endif //#undef assert //#define assert(expr) consolePrintf("Asserted!") @@ -61,7 +70,7 @@ typedef signed int s32; #define assert(s) if (!(s)) consolePrintf("Assertion failed: '##s##' at file %s, line %d\n", __FILE__, __LINE__) -#include "ds-fs.h" +//#include "ds-fs.h" //#define debug(fmt, ...) consolePrintf(fmt, ##__VA_ARGS__) //#define debug(fmt, ...) debug(0, fmt, ##__VA_ARGS__) @@ -72,8 +81,8 @@ typedef signed int s32; -#include "common/array.h" -#include "common/str.h" +//#include "common/array.h" +//#include "common/str.h" time_t DS_time(time_t* t); time_t DS_time(long* t); |