--- np2/x11/compiler.h 2003/11/17 16:12:27 1.3 +++ np2/x11/compiler.h 2003/11/30 16:18:08 1.6 @@ -1,6 +1,12 @@ #ifndef NP2_X11_COMPILER_H__ #define NP2_X11_COMPILER_H__ +#ifdef WORDS_BIGENDIAN +#define BYTESEX_BIG +#else /* !WORDS_BIGENDIAN */ +#define BYTESEX_LITTLE +#endif /* WORDS_BIGENDIAN */ + #if defined(USE_NETBSDAUDIO) && !defined(__NetBSD__) #undef USE_NETBSDAUDIO #endif @@ -13,12 +19,6 @@ #undef NOSOUND #endif /* !USE_NETBSDAUDIO && !USE_OSSAUDIO && !USE_ESDAUDIO && !USE_SDLAUDIO && !USE_SDMIXER */ -#ifdef WORDS_BIGENDIAN -#define BYTESEX_BIG -#else /* !WORDS_BIGENDIAN */ -#define BYTESEX_LITTLE -#endif /* WORDS_BIGENDIAN */ - #if defined(NOSOUND) #undef VERMOUTH_LIB @@ -47,6 +47,8 @@ #include #define X11 +#define OSLANG_EUC +#define OSLINEBREAK_LF typedef signed char CHAR; typedef signed short SHORT; @@ -130,7 +132,15 @@ UINT32 gettick(); #define GETRAND() random() #define SPRINTF sprintf +#if defined(i386) || defined(__i386__) +#undef MEMOPTIMIZE +#elif defined(arm) || defined (__arm__) +#define MEMOPTIMIZE 2 +#else #define MEMOPTIMIZE 1 +#endif + +#define SUPPORT_EUC #define SUPPORT_8BPP #define SUPPORT_24BPP @@ -138,6 +148,10 @@ UINT32 gettick(); #define SUPPORT_32BPP #define SUPPORT_NORMALDISP +#if defined(USE_GTK) +#define SUPPORT_KEYDISP +#endif + /* * You could specify a complete path, e.g. "/etc/timidity.cfg", and * then specify the library directory in the configuration file.