X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f1a4ca62a915b4a7dbc1d8b76c4b1ccfd674a839..8e10778e0e79ad94ac74da5fd1bb087336be4321:/include/wx/platform.h diff --git a/include/wx/platform.h b/include/wx/platform.h index 324a77e876..8de9c98979 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -33,6 +33,13 @@ # if defined(__MACH__) # define __WXMAC_OSX__ # define __WXMAC_CARBON__ +# include +# ifndef MAC_OS_X_VERSION_10_4 +# define MAC_OS_X_VERSION_10_4 1040 +# endif +# ifndef MAC_OS_X_VERSION_10_5 +# define MAC_OS_X_VERSION_10_5 1050 +# endif # ifdef __WXMAC_XCODE__ # include # include "wx/mac/carbon/config_xcode.h" @@ -350,13 +357,11 @@ # endif # endif /* SGI */ -# if defined(sun) || defined(__SUN__) -# ifndef __GNUG__ -# ifndef __SUNCC__ -# define __SUNCC__ -# endif /* Sun CC */ -# endif -# endif /* Sun */ +# if defined(__SUNPRO_CC) +# ifndef __SUNCC__ +# define __SUNCC__ __SUNPRO_CC +# endif /* Sun CC */ +# endif /* Sun CC */ # ifdef __EMX__ # define OS2EMX_PLAIN_CHAR @@ -528,6 +533,10 @@ #define wxCHECK_GCC_VERSION( major, minor ) 0 #endif +#if defined(__BORLANDC__) || (defined(__GNUC__) && __GNUC__ < 3) +#define wxNEEDS_CHARPP +#endif + /* This macro can be used to check that the version of mingw32 compiler is at least maj.min @@ -547,6 +556,18 @@ # define wxCHECK_W32API_VERSION(maj, min) (0) #endif +/** + This is similar to wxCHECK_GCC_VERSION but for Sun CC compiler. + */ +#ifdef __SUNCC__ + /* + __SUNCC__ is 0xVRP where V is major version, R release and P patch level + */ + #define wxCHECK_SUNCC_VERSION(maj, min) (__SUNCC__ >= (((maj)<<8) | ((min)<<4))) +#else + #define wxCHECK_SUNCC_VERSION(maj, min) (0) +#endif + #if defined (__WXMSW__) # if !defined(__WATCOMC__) # define wxHAVE_RAW_BITMAP