Use __DARWIN__ instead of __WXOSX__ in non-GUI code.
This fixes compilation of non-wxOSX ports (e.g. wxGTK) under OS X. Also make the difference between the two symbols more clear in the documentation. Closes #14503. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2779,6 +2779,11 @@ typedef int (* LINKAGEMODE wxListIterateFunction)(void *current);
|
||||
/* platform specific (implementation) parts of the headers */
|
||||
/* --------------------------------------------------------------------------- */
|
||||
|
||||
#ifdef __DARWIN__
|
||||
#define DECLARE_WXOSX_OPAQUE_CFREF( name ) typedef struct __##name* name##Ref;
|
||||
#define DECLARE_WXOSX_OPAQUE_CONST_CFREF( name ) typedef const struct __##name* name##Ref;
|
||||
#endif
|
||||
|
||||
#ifdef __WXMAC__
|
||||
|
||||
#define WX_OPAQUE_TYPE( name ) struct wxOpaque##name
|
||||
@@ -2815,9 +2820,6 @@ typedef const void * CFTypeRef;
|
||||
|
||||
/* typedef const struct __CFString * CFStringRef; */
|
||||
|
||||
#define DECLARE_WXOSX_OPAQUE_CFREF( name ) typedef struct __##name* name##Ref;
|
||||
#define DECLARE_WXOSX_OPAQUE_CONST_CFREF( name ) typedef const struct __##name* name##Ref;
|
||||
|
||||
DECLARE_WXOSX_OPAQUE_CONST_CFREF( CFString )
|
||||
typedef struct __CFString * CFMutableStringRef;
|
||||
|
||||
|
Reference in New Issue
Block a user