X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/26bea6ac6d59736ceea9f0e962abb016c085f6fa..e13f1288772a23069470562fb5e0ce228640e77c:/include/wx/platform.h diff --git a/include/wx/platform.h b/include/wx/platform.h index 68bfb33fc6..bed5fd62c2 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -18,7 +18,7 @@ first define Windows symbols if they're not defined on the command line: we can autodetect everything we need if _WIN32 is defined */ -#if defined(_WIN32) || defined(WIN32) || defined(__NT__) +#if defined(_WIN32) || defined(WIN32) || defined(__NT__) || defined(__WXWINCE__) #ifndef __WXMSW__ #define __WXMSW__ #endif @@ -244,6 +244,20 @@ #define __X__ #endif +/* + This macro can be used to test the gcc version and can be used like this: + + #if wxCHECK_GCC_VERSION(3, 1) + ... we have gcc 3.1 or later ... + #else + ... 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) ) ) ) + /* This macro can be used to check that the version of mingw32 compiler is at least maj.min