projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed a compile warning
[wxWidgets.git]
/
include
/
wx_cwc.pch
diff --git
a/include/wx_cwc.pch
b/include/wx_cwc.pch
index 206775dbda5eb72f996041d4c85af2f71d4c9c13..c6e0d96ca9747f41d9643fa456f3668decd94ea1 100644
(file)
--- a/
include/wx_cwc.pch
+++ b/
include/wx_cwc.pch
@@
-1,11
+1,15
@@
#if __option (profile)
#if __option (profile)
-#if __POWERPC__
+#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
-#if __POWERPC__
+#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"
@@
-17,4
+21,12
@@
#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/wx_cw_cm.h"