diff options
author | Max Horn | 2011-05-31 13:48:03 +0200 |
---|---|---|
committer | Max Horn | 2011-05-31 13:48:03 +0200 |
commit | 9c3e2e43bde0c03ec012b83cd501a93a9ec4025e (patch) | |
tree | b85ae443c4bd0434bc2593422d43aef559ea031e /backends/platform/n64 | |
parent | bea6858953dbcde1c6dc88345631f14d9b550ef8 (diff) | |
download | scummvm-rg350-9c3e2e43bde0c03ec012b83cd501a93a9ec4025e.tar.gz scummvm-rg350-9c3e2e43bde0c03ec012b83cd501a93a9ec4025e.tar.bz2 scummvm-rg350-9c3e2e43bde0c03ec012b83cd501a93a9ec4025e.zip |
COMMON: Move some code from scummsys.h to relevant portdefs.h files
Diffstat (limited to 'backends/platform/n64')
-rw-r--r-- | backends/platform/n64/portdefs.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/backends/platform/n64/portdefs.h b/backends/platform/n64/portdefs.h index e62551355d..35ef3c71db 100644 --- a/backends/platform/n64/portdefs.h +++ b/backends/platform/n64/portdefs.h @@ -35,5 +35,18 @@ #undef assert #define assert(x) ((x) ? 0 : (print_error("ASSERT TRIGGERED:\n\n("#x")\n%s\nline: %d", __FILE__, __LINE__))) +// Typedef basic data types in a way that is compatible with the N64 SDK. +typedef unsigned char byte; +typedef unsigned char uint8; +typedef signed char int8; +typedef unsigned short int uint16; +typedef signed short int int16; +typedef unsigned int uint32; +typedef signed int int32; + +// Define SCUMMVM_DONT_DEFINE_TYPES to prevent scummsys.h from trying to +// re-define those data types. +#define SCUMMVM_DONT_DEFINE_TYPES + #endif |