define __WXOSX__ for wxMac/Cocoa; document it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-10-19 09:02:10 +00:00
parent 036277a790
commit d80fc6df55
2 changed files with 54 additions and 18 deletions

View File

@@ -30,19 +30,26 @@
builds, running under 10.2 + only
*/
#ifdef __WXMAC__
#if defined(__MACH__)
#define __WXMAC_OSX__ 1
#define __WXMAC_CARBON__ 1
#ifdef __WXMAC_XCODE__
#include "wx/mac/carbon/config_xcode.h"
#endif
#else
#if TARGET_CARBON
#define __WXMAC_CARBON__ 1
#else
#define __WXMAC_CLASSIC__ 1
#endif
#endif
# if defined(__MACH__)
# define __WXMAC_OSX__ 1
# define __WXMAC_CARBON__ 1
# ifdef __WXMAC_XCODE__
# include "wx/mac/carbon/config_xcode.h"
# endif
# else
# if TARGET_CARBON
# define __WXMAC_CARBON__ 1
# else
# define __WXMAC_CLASSIC__ 1
# endif
# endif
#endif
/*
__WXOSX__ is a common define to wxMac (Carbon) and wxCocoa ports under OS X.
*/
#if defined(__WXMAC_OSX__) || defined(__WXCOCOA__)
# define __WXOSX__
#endif
/*