X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1ed64378076af9e28d1c3f896d4b85bdc6aa1b2a..9821258b3a3004c7806181982d809ff9c2aeee90:/include/wx/platform.h diff --git a/include/wx/platform.h b/include/wx/platform.h index aa6c716c03..324a77e876 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -72,6 +72,12 @@ #endif #if defined(__PALMOS__) +# if __PALMOS__ == 0x06000000 +# define __WXPALMOS6__ +# endif +# if __PALMOS__ == 0x05000000 +# define __WXPALMOS5__ +# endif # ifndef __WXPALMOS__ # define __WXPALMOS__ # endif @@ -169,6 +175,10 @@ # endif #endif +#if defined(__POCKETPC__) || defined(__SMARTPHONE__) || defined(__WXGPE__) +# define __WXHANDHELD__ +#endif + /* Include wx/setup.h for the Unix platform defines generated by configure and the library compilation options @@ -235,7 +245,7 @@ #endif /* wxUSE_UNICODE */ #if defined( __MWERKS__ ) && !defined(__INTEL__) -// otherwise MSL headers bring in WIN32 dependant APIs +/* otherwise MSL headers bring in WIN32 dependant APIs */ #undef UNICODE #endif @@ -510,10 +520,13 @@ ... no gcc at all or gcc < 3.1 ... # endif */ -#define wxCHECK_GCC_VERSION( major, minor ) \ - ( defined(__GNUC__) && defined(__GNUC_MINOR__) \ - && ( ( __GNUC__ > (major) ) \ - || ( __GNUC__ == (major) && __GNUC_MINOR__ >= (minor) ) ) ) +#if defined(__GNUC__) && defined(__GNUC_MINOR__) + #define wxCHECK_GCC_VERSION( major, minor ) \ + ( ( __GNUC__ > (major) ) \ + || ( __GNUC__ == (major) && __GNUC_MINOR__ >= (minor) ) ) +#else + #define wxCHECK_GCC_VERSION( major, minor ) 0 +#endif /* This macro can be used to check that the version of mingw32 compiler is @@ -541,8 +554,10 @@ #endif #if defined (__WXMAC__) -# if !defined(WORDS_BIGENDIAN) && ( !defined(__MACH__) || ( defined(__BIG_ENDIAN__) && __BIG_ENDIAN__ ) ) +# if ( !defined(__MACH__) || ( defined(__BIG_ENDIAN__) && __BIG_ENDIAN__ ) ) # define WORDS_BIGENDIAN 1 +# else +# undef WORDS_BIGENDIAN # endif #endif