X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/382c4adea6e4d0306e65dd871da1c1c821ebce46..6041f69ca7bbb7c39e4ba64e407bc3ac39e3687f:/include/wx/platform.h?ds=sidebyside diff --git a/include/wx/platform.h b/include/wx/platform.h index e4197527ed..59b553c909 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -15,6 +15,7 @@ #define _WX_PLATFORM_H_ + /* Codewarrior doesn't define any Windows symbols until some headers are included @@ -32,6 +33,12 @@ # include # include # include "wx/osx/config_xcode.h" +# ifndef __WXOSX__ +# define __WXOSX__ 1 +# endif +# ifndef __WXMAC__ +# define __WXMAC__ 1 +# endif #endif /* @@ -182,6 +189,13 @@ #include "wx/setup_gccxml.h" #endif +/* + Convenience for any optional classes that use the wxAnyButton base class. + */ +#if wxUSE_TOGGLEBTN || wxUSE_BUTTON + #define wxHAS_ANY_BUTTON +#endif + /* Hardware platform detection. @@ -273,7 +287,7 @@ /* Preprocessor in older Borland compilers have major problems concatenating with ##. Specifically, if the string operands being - concatenated have special meaning (e.g L"str", 123i64 etc) + concatenated have special meaning (e.g. L"str", 123i64 etc) then ## will not concatenate the operands correctly. As a workaround, define wxPREPEND* and wxAPPEND* without using @@ -820,7 +834,7 @@ #if defined (__WXPALMOS__) #include "wx/palmos/missing.h" -#endif // __WXPALMOS__ +#endif /* __WXPALMOS__ */ #if !defined (__WXPALMOS5__) #define POSSEC_APPBASE @@ -841,7 +855,7 @@ #define POSSEC_FILE #define POSSEC_FILECONF #define POSSEC_FILEFN -#endif // __WXPALMOS5__ +#endif /* __WXPALMOS5__ */ /* Optionally supported C++ features. @@ -866,6 +880,6 @@ # define wxNO_RTTI # endif # endif -#endif // wxNO_RTTI +#endif /* wxNO_RTTI */ #endif /* _WX_PLATFORM_H_ */