git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19854
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#define IMPLEMENT_WXWIN_MAIN \
extern int wxEntry( int argc, char **argv ); \
int main(int argc, char **argv) { return wxEntry(argc, argv); }
#define IMPLEMENT_WXWIN_MAIN \
extern int wxEntry( int argc, char **argv ); \
int main(int argc, char **argv) { return wxEntry(argc, argv); }
-#elif defined(__WXMAC__) && defined(__UNIX__)
+#elif defined(__WXMAC__)
// wxMac seems to have a specific wxEntry prototype
#define IMPLEMENT_WXWIN_MAIN \
extern int wxEntry( int argc, char **argv, bool enterLoop = TRUE ); \
// wxMac seems to have a specific wxEntry prototype
#define IMPLEMENT_WXWIN_MAIN \
extern int wxEntry( int argc, char **argv, bool enterLoop = TRUE ); \
-#if !defined(__WXMAC__) || defined(__UNIX__)
+#if !defined(__WXMAC__) || defined(__UNIX__) || defined(__MACH__)
#include <sys/types.h>
#else
typedef long off_t;
#include <sys/types.h>
#else
typedef long off_t;
typedef long off_t;
#elif defined(__SC__)
typedef long off_t;
typedef long off_t;
#elif defined(__SC__)
typedef long off_t;
-#elif defined(__MWERKS__) && !defined(__INTEL__)
+#elif defined(__MWERKS__) && !defined(__INTEL__) && !defined(__MACH__)
typedef long off_t;
#endif
typedef long off_t;
#endif
#pragma old_argmatch on
#endif
#pragma old_argmatch on
#endif
-#if (__MWERKS__ < 0x0900) || macintosh
+#if (__MWERKS__ < 0x0900) || macintosh || __MACH__
#define __MAC__
#define __WXMAC__
#elif (__MWERKS__ >= 0x0900) && __INTEL__
#define __MAC__
#define __WXMAC__
#elif (__MWERKS__ >= 0x0900) && __INTEL__
#elif defined( __WXMAC__)
#define USE_PRECOMPILED_MAC_HEADERS 0 /*Set to 0 if you don't want to use precompiled MacHeaders*/
#define ACCESSOR_CALLS_ARE_FUNCTIONS 1
#elif defined( __WXMAC__)
#define USE_PRECOMPILED_MAC_HEADERS 0 /*Set to 0 if you don't want to use precompiled MacHeaders*/
#define ACCESSOR_CALLS_ARE_FUNCTIONS 1
+ #if defined( __WXDEBUG__ ) && !defined(__MACH__)
// otherwise the debugger looses all symbol information
#define OPAQUE_TOOLBOX_STRUCTS 0
// otherwise the debugger looses all symbol information
#define OPAQUE_TOOLBOX_STRUCTS 0
- // #else
- // enabling opaque toolbox structs under Classic will break access to contrlDefProc (control.cpp)
- // #define OPAQUE_TOOLBOX_STRUCTS 1
+ #else
+ #define OPAQUE_TOOLBOX_STRUCTS 1
+ #endif
+ #ifdef __MACH__
+ #include <ansi_prefix.mach.h>
+ #include <msl_c_version.h>
+ #include <stdint.h>
+ #undef WCHAR_MAX
+ #include <machine/ansi.h>
+ #else
+ #include <ansi_prefix.mac.h>
- #include <ansi_prefix.mac.h>
/*
#include <MacTypes.h>
#if UNIVERSAL_INTERFACES_VERSION < 0x0340
/*
#include <MacTypes.h>
#if UNIVERSAL_INTERFACES_VERSION < 0x0340
#if __option(profile)
#ifdef __cplusplus
#if __option(profile)
#ifdef __cplusplus
+ #ifdef __MACH__
+ #include <wx_Mach++_prof.mch>
+ #elif __POWERPC__
#include <wx_Carbon++_prof.mch>
#endif
#else
#include <wx_Carbon++_prof.mch>
#endif
#else
+ #ifdef __MACH__
+ #include <wx_Mach_prof.mch>
+ #elif __POWERPC__
#include <wx_Carbon_prof.mch>
#endif
#endif
#else
#ifdef __cplusplus
#include <wx_Carbon_prof.mch>
#endif
#endif
#else
#ifdef __cplusplus
+ #ifdef __MACH__
+ #include <wx_Mach++.mch>
+ #elif __POWERPC__
#include <wx_Carbon++.mch>
#endif
#else
#include <wx_Carbon++.mch>
#endif
#else
+ #ifdef __MACH__
+ #include <wx_Mach.mch>
+ #elif __POWERPC__
#include <wx_Carbon.mch>
#endif
#endif
#include <wx_Carbon.mch>
#endif
#endif
#error "profiling is not supported in debug versions"
#else
#ifdef __cplusplus
#error "profiling is not supported in debug versions"
#else
#ifdef __cplusplus
+ #ifdef __MACH__
+ #include <wx_Mach++_d.mch>
+ #elif __POWERPC__
#include <wx_Carbon++_d.mch>
#endif
#else
#include <wx_Carbon++_d.mch>
#endif
#else
+ #ifdef __MACH__
+ #include <wx_Mach_d.mch>
+ #elif __POWERPC__
#include <wx_Carbon_d.mch>
#endif
#endif
#include <wx_Carbon_d.mch>
#endif
#endif
+#ifdef __MACH__
+ #pragma precompile_target "wx_Mach_prof.mch"
+#elif __POWERPC__
#pragma precompile_target "wx_Carbon_prof.mch"
#else
#error "illegal processor for carbon"
#endif
#else
#pragma precompile_target "wx_Carbon_prof.mch"
#else
#error "illegal processor for carbon"
#endif
#else
+#ifdef __MACH__
+ #pragma precompile_target "wx_Mach.mch"
+#elif __POWERPC__
#pragma precompile_target "wx_Carbon.mch"
#else
#error "illegal processor for carbon"
#pragma precompile_target "wx_Carbon.mch"
#else
#error "illegal processor for carbon"
#define wxUSE_GUI 1
#define TARGET_CARBON 1
#define OLDP2C 1
#define wxUSE_GUI 1
#define TARGET_CARBON 1
#define OLDP2C 1
+#ifdef __MACH__
+ #define __DARWIN__
+ #define __CF_USE_FRAMEWORK_INCLUDES__
+ #define __NOEXTENSIONS__
+ #define __UNIX__
+ #define __UNIX_LIKE__
+#endif
+#ifdef __MACH__
+ #pragma precompile_target "wx_Mach++_prof.mch"
+#elif __POWERPC__
#pragma precompile_target "wx_Carbon++_prof.mch"
#else
#error "illegal processor for carbon"
#endif
#else
#pragma precompile_target "wx_Carbon++_prof.mch"
#else
#error "illegal processor for carbon"
#endif
#else
+#ifdef __MACH__
+ #pragma precompile_target "wx_Mach++.mch"
+#elif __POWERPC__
#pragma precompile_target "wx_Carbon++.mch"
#else
#error "illegal processor for carbon"
#pragma precompile_target "wx_Carbon++.mch"
#else
#error "illegal processor for carbon"
#define wxUSE_GUI 1
#define TARGET_CARBON 1
#define OLDP2C 1
#define wxUSE_GUI 1
#define TARGET_CARBON 1
#define OLDP2C 1
+#ifdef __MACH__
+ #define __DARWIN__
+ #define __CF_USE_FRAMEWORK_INCLUDES__
+ #define __NOEXTENSIONS__
+ #define __UNIX__
+ #define __UNIX_LIKE__
+#endif
#include "wx/wx_cw_cm.h"
#include "wx/wxprec.h"
\ No newline at end of file
#include "wx/wx_cw_cm.h"
#include "wx/wxprec.h"
\ No newline at end of file
#if __option (profile)
#error "profiling is not supported for debug targets"
#else
#if __option (profile)
#error "profiling is not supported for debug targets"
#else
+#ifdef __MACH__
+ #pragma precompile_target "wx_Mach_d.mch"
+#elif __POWERPC__
#pragma precompile_target "wx_Carbon_d.mch"
#else
#error "illegal processor for carbon"
#pragma precompile_target "wx_Carbon_d.mch"
#else
#error "illegal processor for carbon"
#define wxUSE_GUI 1
#define TARGET_CARBON 1
#define OLDP2C 1
#define wxUSE_GUI 1
#define TARGET_CARBON 1
#define OLDP2C 1
+#ifdef __MACH__
+ #define __DARWIN__
+ #define __CF_USE_FRAMEWORK_INCLUDES__
+ #define __NOEXTENSIONS__
+ #define __UNIX__
+ #define __UNIX_LIKE__
+#endif
#include "wx/wx_cw_cm.h"
#ifdef __WXMSW__
#include "wx/wx_cw_cm.h"
#ifdef __WXMSW__
#if __option (profile)
#error "profiling is not supported for debug targets"
#else
#if __option (profile)
#error "profiling is not supported for debug targets"
#else
+#ifdef __MACH__
+ #pragma precompile_target "wx_Mach++_d.mch"
+#elif __POWERPC__
#pragma precompile_target "wx_Carbon++_d.mch"
#else
#error "illegal processor for carbon"
#pragma precompile_target "wx_Carbon++_d.mch"
#else
#error "illegal processor for carbon"
#define wxUSE_GUI 1
#define TARGET_CARBON 1
#define OLDP2C 1
#define wxUSE_GUI 1
#define TARGET_CARBON 1
#define OLDP2C 1
+#ifdef __MACH__
+ #define __DARWIN__
+ #define __CF_USE_FRAMEWORK_INCLUDES__
+ #define __NOEXTENSIONS__
+ #define __UNIX__
+ #define __UNIX_LIKE__
+#endif
#include "wx/wx_cw_cm.h"
#ifdef WX_PRECOMP
#include "wx/wxprec.h"
#include "wx/wx_cw_cm.h"
#ifdef WX_PRECOMP
#include "wx/wxprec.h"