X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..a5664fd6ef32c7e7432a9213ad8a8f9550460fbf:/include/wx/platform.h diff --git a/include/wx/platform.h b/include/wx/platform.h index abb2278afb..713925585f 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -33,20 +33,25 @@ __WXOSX_IPHONE__ means OS X iPhone */ -/* backwards compatible define, until configure gets updated */ -#if defined __WXMAC__ -#define __WXOSX_CARBON__ 1 -#endif +/* + Normally all of __WXOSX_XXX__, __WXOSX__ and __WXMAC__ are defined by + configure but ensure that we also define them if configure was not used for + whatever reason. + The primare symbol remains __WXOSX_XXX__ one, __WXOSX__ exists to allow + checking for any OS X port (Carbon and Cocoa) and __WXMAC__ is an old name + for it. + */ #if defined(__WXOSX_CARBON__) || defined(__WXOSX_COCOA__) || defined(__WXOSX_IPHONE__) -# define __WXOSX__ 1 -#endif - -#ifdef __WXOSX__ -/* for backwards compatibility of code (including our own) define __WXMAC__ */ +# ifndef __WXOSX__ +# define __WXOSX__ 1 +# endif # ifndef __WXMAC__ # define __WXMAC__ 1 # endif +#endif + +#ifdef __WXOSX__ /* setup precise defines according to sdk used */ # include # if defined(__WXOSX_IPHONE__) @@ -539,8 +544,10 @@ # define __VISUALC8__ # elif __VISUALC__ < 1600 # define __VISUALC9__ +# elif __VISUALC__ < 1700 +# define __VISUALC10__ # else -# pragma message("Please update this code for the next VC++ version") +# pragma message("Please update wx/platform.h to recognize this VC++ version") # endif # elif defined(__BCPLUSPLUS__) && !defined(__BORLANDC__) @@ -645,6 +652,8 @@ #else # undef wxCHECK_W32API_VERSION # define wxCHECK_W32API_VERSION(maj, min) (0) +# undef wxCHECK_MINGW32_VERSION +# define wxCHECK_MINGW32_VERSION(maj, min) (0) #endif /** @@ -818,4 +827,29 @@ #define POSSEC_FILEFN #endif // __WXPALMOS5__ +/* + Optionally supported C++ features. + */ + +/* + RTTI: if it is disabled in build/msw/makefile.* then this symbol will + already be defined but it's also possible to do it from configure (with + g++) or by editing project files with MSVC so test for it here too. + */ +#ifndef wxNO_RTTI + /* + Only 4.3 defines __GXX_RTTI by default so its absence is not an + indication of disabled RTTI with the previous versions. + */ +# if wxCHECK_GCC_VERSION(4, 3) +# ifndef __GXX_RTTI +# define wxNO_RTTI +# endif +# elif defined(_MSC_VER) +# ifndef _CPPRTTI +# define wxNO_RTTI +# endif +# endif +#endif // wxNO_RTTI + #endif /* _WX_PLATFORM_H_ */