diff options
author | pixel <pixel> | 2005-02-17 08:33:49 +0000 |
---|---|---|
committer | pixel <pixel> | 2005-02-17 08:33:49 +0000 |
commit | 10950039598638315f96a5a966804d68427166e5 (patch) | |
tree | f60d7f51c813a02e868963c7459a8c8ff8812c1b /include/generic.h | |
parent | 122edf9b051308f715a325066ed480537ea0a841 (diff) |
Updating makefiles to add luapatch, and updating things a bit for PS2 target.
Diffstat (limited to 'include/generic.h')
-rw-r--r-- | include/generic.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/include/generic.h b/include/generic.h index 4f71654..ee41652 100644 --- a/include/generic.h +++ b/include/generic.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: generic.h,v 1.32 2004-12-27 18:49:30 pixel Exp $ */ +/* $Id: generic.h,v 1.33 2005-02-17 08:33:49 pixel Exp $ */ #ifndef __GENERIC_H__ #define __GENERIC_H__ @@ -42,6 +42,26 @@ #define bcopy(x,y,z) memcpy((y),(x),(z)) #endif +#ifdef __MIPSEL__ +/* we most probably are in ps2dev here */ +#include <tamtypes.h> +#include <stddef.h> + +typedef u64 Uint64; +typedef s64 int64; +typedef u32 Uint32; +typedef s32 int32; +typedef u16 Uint16; +typedef s16 int16; +typedef u8 Uint8; +typedef s8 int8; + +typedef u8 Byte; +typedef u16 Word; +typedef u32 DWord; + +#else + #if ! defined SDL_VERSIONNUM && ! defined Uint32 typedef unsigned long int Uint32; #endif @@ -93,6 +113,7 @@ typedef unsigned _int64 Uint64; #error Unsupported platform (need 64 bits ints definition) #endif #endif +#endif #ifndef PACKED #if defined __linux__ || defined sun || defined __solaris__ || defined __CYGWIN32__ || defined __MINGW32__ || defined __APPLE__ @@ -189,7 +210,7 @@ inline T ABS(T x) { #include <direct.h> #define MKDIR mkdir #else -#error Unknow compiler/platform +#warning Unknow compiler/platform; MKDIR not defined. #endif #endif |