--- np2/sdl/slzaurus/compiler.h 2003/11/30 12:32:04 1.2 +++ np2/sdl/slzaurus/compiler.h 2003/12/12 16:15:19 1.4 @@ -13,7 +13,6 @@ #define OSLANG_EUC #define OSLINEBREAK_LF -typedef signed char CHAR; typedef signed int INT; typedef unsigned char UCHAR; @@ -28,8 +27,10 @@ typedef unsigned short UINT16; typedef signed int SINT32; typedef unsigned int UINT32; -typedef unsigned char BYTE; typedef int BOOL; +typedef signed char CHAR; +typedef signed char TCHAR; +typedef unsigned char BYTE; #ifndef TRUE @@ -79,6 +80,13 @@ typedef int BOOL; #define NELEMENTS(a) ((int)(sizeof(a) / sizeof(a[0]))) #endif + +#if !defined(SIZE_VGA) +#define RGB16 UINT32 +#define SIZE_QVGA +#endif + + #include "common.h" #include "milstr.h" #include "_memory.h" @@ -86,6 +94,7 @@ typedef int BOOL; #include "lstarray.h" #include "trace.h" + #define GETTICK() SDL_GetTicks() #define SPRINTF sprintf #define __ASSERT(s) @@ -98,10 +107,6 @@ typedef int BOOL; #define SUPPORT_16BPP #define MEMOPTIMIZE 2 -#ifndef SIZE_VGA -#define SIZE_QVGA -#endif - #define SOUNDRESERVE 100 #define SCREEN_BPP 16