--- np2/x11/compiler.h 2004/01/07 14:51:53 1.8 +++ np2/x11/compiler.h 2004/01/23 14:35:45 1.10 @@ -112,18 +112,26 @@ typedef int BOOL; #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) #endif +#ifndef UNUSED #define UNUSED(v) ((void)(v)) -#define INLINE __inline +#endif + #define FASTCALL #define SOUNDCALL #define MEMCALL #define CPUCALL #ifdef DEBUG +#define INLINE #define __ASSERT(s) assert(s) #else +#ifndef __ASSERT #define __ASSERT(s) #endif +#ifndef INLINE +#define INLINE __inline +#endif +#endif #ifndef NELEMENTS #define NELEMENTS(a) ((int)(sizeof(a) / sizeof(a[0]))) @@ -134,6 +142,9 @@ UINT32 gettick(); #define GETRAND() random() #define SPRINTF sprintf +void toolkit_msgbox(const char *title, const char *msg); +#define msgbox(title, msg) toolkit_msgbox(title, msg); + #if defined(i386) || defined(__i386__) #undef MEMOPTIMIZE #elif defined(arm) || defined (__arm__) @@ -152,6 +163,8 @@ UINT32 gettick(); #define SUPPORT_32BPP #define SUPPORT_NORMALDISP +#define SUPPORT_HOSTDRV + #if defined(USE_GTK) #define SUPPORT_KEYDISP #endif