+
+/* supporting the old short name */
+
+#ifdef __WXMAC__
+# define __WXOSX__
+#endif
+
+#ifdef __WXOSX__
+/* for backwards compatibility of code (including our own) define __WXMAC__ */
+#ifndef __WXMAC__
+#define __WXMAC__
+#endif
+/* setup precise defines according to sdk used */
+# include <TargetConditionals.h>
+# if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
+# define __WXOSX_IPHONE__
+# undef __WXOSX_MAC__
+# elif defined(TARGET_OS_MAC) && TARGET_OS_MAC
+# undef __WXOSX_IPHONE__
+# define __WXOSX_MAC__
+# else
+# error "unknown SDK, neither TARGET_OS_MAC nor TARGET_OS_IPHONE set in <TargetConditionals.h>"
+# endif
+#endif
+
+#ifdef __WXOSX_MAC__