X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/305142ad5fb7bd20e1c88ebd8df1766b9ff4b79f..6e3e6c8efb7da8e096121af3b1dc67d46aad3c14:/include/wx/platform.h diff --git a/include/wx/platform.h b/include/wx/platform.h index a174b2e706..328f4bc194 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -21,6 +21,10 @@ */ #ifdef __MWERKS__ # include + +# if !defined(__WXMAC__) && !defined(__WINDOWS__) && !defined(WIN32) && !defined(_WIN32_WCE) +# define __PALMOS__ 0x05000000 +# endif #endif /* @@ -40,10 +44,6 @@ # 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" -# endif # else # error "only mach-o configurations are supported" # endif @@ -72,6 +72,12 @@ # define __WXOSX__ #endif +#ifdef __WXOSX__ +# ifdef __WXMAC_XCODE__ +# include +# include "wx/mac/carbon/config_xcode.h" +# endif +#endif /* first define Windows symbols if they're not defined on the command line: we can autodetect everything we need if _WIN32 is defined @@ -92,13 +98,13 @@ #if defined(__PALMOS__) # if __PALMOS__ == 0x06000000 -# define __WXPALMOS6__ +# define __WXPALMOS6__ 1 # endif # if __PALMOS__ == 0x05000000 -# define __WXPALMOS5__ +# define __WXPALMOS5__ 1 # endif # ifndef __WXPALMOS__ -# define __WXPALMOS__ +# define __WXPALMOS__ 1 # endif # ifdef __WXMSW__ # undef __WXMSW__ @@ -634,6 +640,15 @@ # define wxVMS_USE_STD #endif +#ifdef __VMS +#define XtDisplay XTDISPLAY +#ifdef __WXMOTIF__ +#define XtParent XTPARENT +#define XtScreen XTSCREEN +#define XtWindow XTWINDOW +#endif +#endif + /* Choose which method we will use for updating menus * - in OnIdle, or when we receive a wxEVT_MENU_OPEN event. * Presently, only Windows and GTK+ support wxEVT_MENU_OPEN. @@ -677,4 +692,29 @@ #include #endif +#if defined (__WXPALMOS__) +#include "wx/palmos/missing.h" +#endif // __WXPALMOS__ + +#if !defined (__WXPALMOS5__) +#define POSSEC_APPBASE +#define POSSEC_ARCHIVE +#define POSSEC_CLNTDATA +#define POSSEC_CMDLINE +#define POSSEC_CONFIG +#define POSSEC_DATETIME +#define POSSEC_DATETIME2 +#define POSSEC_DATSTRM +#define POSSEC_DIRCMN +#define POSSEC_DYNARRAY +#define POSSEC_DYNLIB +#define POSSEC_DYNLOAD +#define POSSEC_ENCCONV +#define POSSEC_EXTENDED +#define POSSEC_FFILE +#define POSSEC_FILE +#define POSSEC_FILECONF +#define POSSEC_FILEFN +#endif // __WXPALMOS5__ + #endif /* _WX_PLATFORM_H_ */