diff --git a/include/wx/notifmsg.h b/include/wx/notifmsg.h index 36b59e8c87..ef7c2ceda3 100644 --- a/include/wx/notifmsg.h +++ b/include/wx/notifmsg.h @@ -123,7 +123,7 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_NOTIFICATION_MESSAGE_ACTION, w #if (defined(__WXGTK__) && wxUSE_LIBNOTIFY) || \ (defined(__WXMSW__) && wxUSE_TASKBARICON && wxUSE_TASKBARICON_BALLOONS) || \ - (defined(__WXOSX_COCOA__) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8)) + (defined(__WXOSX_COCOA__) && (__MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8)) #define wxHAS_NATIVE_NOTIFICATION_MESSAGE #endif diff --git a/include/wx/osx/cocoa/private.h b/include/wx/osx/cocoa/private.h index 2080e475cf..0220537f64 100644 --- a/include/wx/osx/cocoa/private.h +++ b/include/wx/osx/cocoa/private.h @@ -148,7 +148,7 @@ public : void SetupCoordinates(wxCoord &x, wxCoord &y, NSEvent *nsEvent); virtual bool SetupCursor(NSEvent* event); -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 #ifdef API_AVAILABLE #define WX_AVAILABLE_10_10 API_AVAILABLE(macos(10.10)) #else @@ -164,7 +164,7 @@ public : WX_AVAILABLE_10_10 virtual void TouchesEnded(NSEvent *event); #undef WX_AVAILABLE_10_10 -#endif // MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 +#endif // __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 #if !wxOSX_USE_NATIVE_FLIPPED void SetFlipped(bool flipped); diff --git a/include/wx/osx/core/cfref.h b/include/wx/osx/core/cfref.h index 4a258ba21b..8fe68971f3 100644 --- a/include/wx/osx/core/cfref.h +++ b/include/wx/osx/core/cfref.h @@ -18,8 +18,8 @@ // Include unistd to ensure that NULL is defined #include -// Include AvailabilityMacros for DEPRECATED_ATTRIBUTE -#include +// Include Availability for __AVAILABILITY_INTERNAL_DEPRECATED +#include #if __has_feature(objc_arc) #define WX_OSX_BRIDGE_RETAINED __bridge_retained @@ -391,7 +391,7 @@ inline wxCFWeakRef static_cfref_cast(const wxCFRef &other Normally, this function is unimplemented resulting in a linker error if used. */ template -inline void CFRelease(const wxCFRef & cfref) DEPRECATED_ATTRIBUTE; +inline void CFRelease(const wxCFRef & cfref) __AVAILABILITY_INTERNAL_DEPRECATED; /*! @function CFRetain @abstract Overloads CFRetain so that the user is warned of bad behaviour. @@ -400,7 +400,7 @@ inline void CFRelease(const wxCFRef & cfref) DEPRECATED_ATTRIBUTE; Normally, this function is unimplemented resulting in a linker error if used. */ template -inline void CFRetain(const wxCFRef& cfref) DEPRECATED_ATTRIBUTE; +inline void CFRetain(const wxCFRef& cfref) __AVAILABILITY_INTERNAL_DEPRECATED; // Change the 0 to a 1 if you want the functions to work (no link errors) // Neither function will cause retain/release side-effects if implemented. diff --git a/include/wx/platform.h b/include/wx/platform.h index fccbedc0ae..3aa6c16249 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -16,7 +16,7 @@ #ifdef __WXMAC_XCODE__ # include # include -# include +# include # ifndef MAC_OS_X_VERSION_10_4 # define MAC_OS_X_VERSION_10_4 1040 # endif @@ -53,7 +53,13 @@ # ifndef MAC_OS_X_VERSION_10_15 # define MAC_OS_X_VERSION_10_15 101500 # endif -# if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_13 +# ifndef MAC_OS_X_VERSION_10_16 +# define MAC_OS_X_VERSION_10_16 101600 +# endif +# ifndef MAC_OS_X_VERSION_10_16 +# define MAC_OS_VERSION_11_0 110000 +# endif +# if __MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_13 # ifndef NSAppKitVersionNumber10_10 # define NSAppKitVersionNumber10_10 1343 # endif @@ -467,7 +473,7 @@ #ifdef __WXOSX_MAC__ # if defined(__MACH__) -# include +# include # ifndef MAC_OS_X_VERSION_10_4 # define MAC_OS_X_VERSION_10_4 1040 # endif @@ -501,7 +507,16 @@ # ifndef MAC_OS_X_VERSION_10_14 # define MAC_OS_X_VERSION_10_14 101400 # endif -# if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_13 +# ifndef MAC_OS_X_VERSION_10_15 +# define MAC_OS_X_VERSION_10_15 101500 +# endif +# ifndef MAC_OS_X_VERSION_10_16 +# define MAC_OS_X_VERSION_10_16 101600 +# endif +# ifndef MAC_OS_X_VERSION_10_16 +# define MAC_OS_VERSION_11_0 110000 +# endif +# if __MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_13 # ifndef NSAppKitVersionNumber10_10 # define NSAppKitVersionNumber10_10 1343 # endif diff --git a/src/html/htmlctrl/webkit/webkit.mm b/src/html/htmlctrl/webkit/webkit.mm index 41334ea13d..ef8f8a3797 100644 --- a/src/html/htmlctrl/webkit/webkit.mm +++ b/src/html/htmlctrl/webkit/webkit.mm @@ -21,7 +21,7 @@ #include "wx/osx/private.h" #include -#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_15 +#if __MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_15 #include #include #endif @@ -30,7 +30,7 @@ #define DEBUG_WEBKIT_SIZING 0 -#if defined(MAC_OS_X_VERSION_10_11) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_11) +#if defined(MAC_OS_X_VERSION_10_11) && (__MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_11) #define wxWEBKIT_PROTOCOL_SINCE_10_11(proto) < proto > #else #define wxWEBKIT_PROTOCOL_SINCE_10_11(proto) diff --git a/src/osx/carbon/statbrma.cpp b/src/osx/carbon/statbrma.cpp index ba19399a55..54e4699a23 100644 --- a/src/osx/carbon/statbrma.cpp +++ b/src/osx/carbon/statbrma.cpp @@ -118,7 +118,7 @@ void wxStatusBarMac::InitColours() SetBackgroundColour(wxColour(0xF4, 0xF4, 0xF4)); // inactive bg } } -#if MAC_OS_X_VERSION_MIN_REQUIRED < 101000 +#if __MAC_OS_X_VERSION_MIN_REQUIRED < 101000 else { // 10.9 Mavericks and older: @@ -130,7 +130,7 @@ void wxStatusBarMac::InitColours() m_borderInactive = wxColour(0xA3, 0xA3, 0xA3); SetBackgroundColour(wxColour(0xE1, 0xE1, 0xE1)); // inactive bg } -#endif // MAC_OS_X_VERSION_MIN_REQUIRED < 101000 +#endif // __MAC_OS_X_VERSION_MIN_REQUIRED < 101000 } void wxStatusBarMac::DrawFieldText(wxDC& dc, const wxRect& rect, int i, int textHeight) diff --git a/src/osx/carbon/utilscocoa.mm b/src/osx/carbon/utilscocoa.mm index d06e09ae92..63c2d0d554 100644 --- a/src/osx/carbon/utilscocoa.mm +++ b/src/osx/carbon/utilscocoa.mm @@ -108,7 +108,7 @@ NSFont* wxFont::OSXGetNSFont() const NSFont *font = const_cast(reinterpret_cast(OSXGetCTFont())); -#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12 +#if __MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12 // There's a bug in OS X 10.11 (but not present in 10.10 or 10.12) where a // toll-free bridged font may have an attributed of private class __NSCFCharacterSet // that unlike NSCharacterSet doesn't conform to NSSecureCoding. This poses @@ -122,7 +122,7 @@ NSFont* wxFont::OSXGetNSFont() const { return [NSFont fontWithDescriptor:[font fontDescriptor] size:[font pointSize]]; } -#endif // MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12 +#endif // __MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12 return font; } @@ -633,7 +633,7 @@ NSString* wxNSStringWithWxString(const wxString &wxstring) wxOSXEffectiveAppearanceSetter::wxOSXEffectiveAppearanceSetter() { -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 if ( WX_IS_MACOS_AVAILABLE(10, 14 ) ) { formerAppearance = NSAppearance.currentAppearance; @@ -646,7 +646,7 @@ wxOSXEffectiveAppearanceSetter::wxOSXEffectiveAppearanceSetter() wxOSXEffectiveAppearanceSetter::~wxOSXEffectiveAppearanceSetter() { -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 if ( WX_IS_MACOS_AVAILABLE(10, 14 ) ) NSAppearance.currentAppearance = (NSAppearance*) formerAppearance; #endif diff --git a/src/osx/cocoa/colour.mm b/src/osx/cocoa/colour.mm index 247da73b03..68f49a1089 100644 --- a/src/osx/cocoa/colour.mm +++ b/src/osx/cocoa/colour.mm @@ -105,7 +105,7 @@ bool wxNSColorRefData::IsSolid() const CGColorRef wxNSColorRefData::GetCGColor() const { -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8 if ( WX_IS_MACOS_AVAILABLE(10, 8) ) { wxOSXEffectiveAppearanceSetter helper; return [m_nsColour CGColor]; diff --git a/src/osx/cocoa/dataview.mm b/src/osx/cocoa/dataview.mm index 20be69570b..ba69b872d5 100644 --- a/src/osx/cocoa/dataview.mm +++ b/src/osx/cocoa/dataview.mm @@ -3035,14 +3035,14 @@ bool wxDataViewTextRenderer::MacRender() [par setLineBreakMode:[cell lineBreakMode]]; // Tightening looks very ugly when combined with non-tightened rows, // so disabled it on OS X version where it's used: -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_11 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_11 if ( WX_IS_MACOS_AVAILABLE(10, 11) ) { [par setAllowsDefaultTighteningForTruncation:NO]; } else #endif -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 if ( WX_IS_MACOS_AVAILABLE(10, 10) ) { [par setTighteningFactorForTruncation:0.0]; diff --git a/src/osx/cocoa/mediactrl.mm b/src/osx/cocoa/mediactrl.mm index 03219a0774..19580394cc 100644 --- a/src/osx/cocoa/mediactrl.mm +++ b/src/osx/cocoa/mediactrl.mm @@ -33,7 +33,7 @@ #include "wx/osx/private.h" #include "wx/osx/private/available.h" -#if wxOSX_USE_COCOA && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 && defined(__LP64__) +#if wxOSX_USE_COCOA && __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 && defined(__LP64__) #define wxOSX_USE_AVKIT 1 #else #define wxOSX_USE_AVKIT 0 diff --git a/src/osx/cocoa/notifmsg.mm b/src/osx/cocoa/notifmsg.mm index 1bed2809c3..a3dbe5a587 100644 --- a/src/osx/cocoa/notifmsg.mm +++ b/src/osx/cocoa/notifmsg.mm @@ -121,7 +121,7 @@ public: virtual void SetIcon(const wxIcon& icon) wxOVERRIDE { -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 // Additional icon in the notification is only supported on OS X 10.9+ if ( WX_IS_MACOS_AVAILABLE(10, 9) ) m_notif.contentImage = icon.GetNSImage(); diff --git a/src/osx/cocoa/power.mm b/src/osx/cocoa/power.mm index 4ac6735ee4..66dc7dbe0e 100644 --- a/src/osx/cocoa/power.mm +++ b/src/osx/cocoa/power.mm @@ -37,7 +37,7 @@ bool UpdatePowerResourceUsage(wxPowerResourceKind kind, const wxString& reason) if( reason.IsEmpty()) cfreason = wxString("User Activity"); -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 if ( WX_IS_MACOS_AVAILABLE(10, 9) ) { // Use NSProcessInfo for 10.9 and newer @@ -82,7 +82,7 @@ bool UpdatePowerResourceUsage(wxPowerResourceKind kind, const wxString& reason) else if ( g_powerResourceSystemRefCount == 0 ) { // Release power assertion -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 if ( WX_IS_MACOS_AVAILABLE(10, 9) ) { // Use NSProcessInfo for 10.9 and newer diff --git a/src/osx/cocoa/settings.mm b/src/osx/cocoa/settings.mm index 4493db33f9..bcd0abd25f 100644 --- a/src/osx/cocoa/settings.mm +++ b/src/osx/cocoa/settings.mm @@ -48,7 +48,7 @@ static int wxOSXGetUserDefault(NSString* key, int defaultValue) wxString wxSystemAppearance::GetName() const { -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 if ( WX_IS_MACOS_AVAILABLE(10, 14) ) { return wxStringWithNSString([[NSApp effectiveAppearance] name]); @@ -60,7 +60,7 @@ wxString wxSystemAppearance::GetName() const bool wxSystemAppearance::IsDark() const { -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 if ( WX_IS_MACOS_AVAILABLE(10, 14) ) { const NSAppearanceName @@ -163,7 +163,7 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index) sysColor = [NSColor windowBackgroundColor]; break; case wxSYS_COLOUR_HOTLIGHT: -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 if ( WX_IS_MACOS_AVAILABLE(10, 14) ) { sysColor = [NSColor linkColor]; diff --git a/src/osx/cocoa/utils.mm b/src/osx/cocoa/utils.mm index b8367bbe67..4c63d378cc 100644 --- a/src/osx/cocoa/utils.mm +++ b/src/osx/cocoa/utils.mm @@ -478,7 +478,7 @@ void wxApp::DoCleanUp() void wxApp::OSXEnableAutomaticTabbing(bool enable) { // Automatic tabbing was first introduced in 10.12 -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_12 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_12 if ( WX_IS_MACOS_AVAILABLE(10, 12) ) { [NSWindow setAllowsAutomaticWindowTabbing:enable]; diff --git a/src/osx/cocoa/utils_base.mm b/src/osx/cocoa/utils_base.mm index 9a74146e4f..6a6cf58087 100644 --- a/src/osx/cocoa/utils_base.mm +++ b/src/osx/cocoa/utils_base.mm @@ -24,7 +24,7 @@ #include "wx/osx/private.h" #include "wx/osx/private/available.h" -#if (defined(__WXOSX_COCOA__) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10) \ +#if (defined(__WXOSX_COCOA__) && __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10) \ || (defined(__WXOSX_IPHONE__) && defined(__IPHONE_8_0)) #define wxHAS_NSPROCESSINFO 1 #endif @@ -238,7 +238,7 @@ bool wxCocoaLaunch(const char* const* argv, pid_t &pid) } NSMutableArray *params = [[NSMutableArray alloc] init]; -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 if ( WX_IS_MACOS_AVAILABLE(10, 10) ) { // Loop through command line arguments to the bundle, @@ -287,7 +287,7 @@ bool wxCocoaLaunch(const char* const* argv, pid_t &pid) NSRunningApplication *app = nil; -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 if ( WX_IS_MACOS_AVAILABLE(10, 10) ) { if ( [params count] > 0 ) diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index 4b95b9669d..c3987f20a5 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -1128,7 +1128,7 @@ void wxOSX_insertText(NSView* self, SEL _cmd, NSString* text) impl->insertText(text, self, _cmd); } -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 WX_API_AVAILABLE_MACOS(10, 10) void wxOSX_panGestureEvent(NSView* self, SEL _cmd, NSPanGestureRecognizer* panGestureRecognizer) { @@ -1198,7 +1198,7 @@ void wxOSX_touchesEnded(NSView* self, SEL _cmd, NSEvent *event) impl->TouchesEnded(event); } -#endif // MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 +#endif // __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 BOOL wxOSX_acceptsFirstResponder(NSView* self, SEL _cmd) { @@ -1577,7 +1577,7 @@ void wxWidgetCocoaImpl::keyEvent(WX_NSEvent event, WXWidget slf, void *_cmd) m_lastKeyDownEvent = NULL; } -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 // Class containing data used for gestures support. class WX_API_AVAILABLE_MACOS(10, 10) wxCocoaGesturesImpl @@ -2140,7 +2140,7 @@ void wxCocoaGesturesImpl::TouchesEnded(NSEvent* event) m_activeGestures &= ~press_and_tap; } } -#endif // MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 +#endif // __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 void wxWidgetCocoaImpl::insertText(NSString* text, WXWidget slf, void *_cmd) { @@ -2577,9 +2577,9 @@ wxWidgetCocoaImpl::~wxWidgetCocoaImpl() if ( m_osxView ) CFRelease(m_osxView); -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 wxCocoaGestures::EraseForObject(this); -#endif // MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 +#endif // __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 } bool wxWidgetCocoaImpl::IsVisible() const @@ -2592,7 +2592,7 @@ void wxWidgetCocoaImpl::SetVisibility( bool visible ) [m_osxView setHidden:(visible ? NO:YES)]; // trigger redraw upon shown for layer-backed views -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 if ( WX_IS_MACOS_AVAILABLE(10, 14 ) ) if( !m_osxView.isHiddenOrHasHiddenAncestor ) SetNeedsDisplay(NULL); @@ -2846,7 +2846,7 @@ bool wxWidgetCocoaImpl::ShowWithEffect(bool show, // maybe even earlier? This has changed at some time between 10.9 and 10.11), // we need to constrain the comparison function arguments instead of just using // "id". -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_11 && __has_feature(objc_kindof) +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_11 && __has_feature(objc_kindof) typedef __kindof NSView* KindOfView; #else typedef id KindOfView; @@ -3048,7 +3048,7 @@ void wxWidgetCocoaImpl::GetContentArea( int&left, int &top, int &width, int &hei } } -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 namespace { @@ -3080,7 +3080,7 @@ void wxWidgetCocoaImpl::SetNeedsDisplay( const wxRect* where ) // Layer-backed views (which are all in Mojave's Dark Mode) may not have // their children implicitly redrawn with the parent. For compatibility, // do it manually here: -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 if ( WX_IS_MACOS_AVAILABLE(10, 14 ) ) SetSubviewsNeedDisplay(m_osxView); #endif @@ -3593,7 +3593,7 @@ void wxWidgetCocoaImpl::InstallEventHandler( WXWidget control ) bool wxWidgetCocoaImpl::EnableTouchEvents(int eventsMask) { -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 if ( WX_IS_MACOS_AVAILABLE(10, 10) ) { if ( HasUserMouseHandling() ) @@ -3623,7 +3623,7 @@ bool wxWidgetCocoaImpl::EnableTouchEvents(int eventsMask) return true; } } -#endif // MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 +#endif // __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 wxUnusedVar(eventsMask); return false; diff --git a/src/osx/core/colour.cpp b/src/osx/core/colour.cpp index 19982bd6f9..9430d914d3 100644 --- a/src/osx/core/colour.cpp +++ b/src/osx/core/colour.cpp @@ -118,7 +118,7 @@ wxCGColorRefData::wxCGColorRefData(CGColorRef col) } else if (model != kCGColorSpaceModelRGB) { -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_11 +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_11 if ( WX_IS_MACOS_AVAILABLE(10, 11) ) { rgbacol = CGColorCreateCopyByMatchingToColorSpace(wxMacGetGenericRGBColorSpace(), kCGRenderingIntentDefault, col, NULL); diff --git a/src/osx/webview_webkit.mm b/src/osx/webview_webkit.mm index 382572b31f..c5bf2bcc16 100644 --- a/src/osx/webview_webkit.mm +++ b/src/osx/webview_webkit.mm @@ -33,7 +33,7 @@ #include #else #include -#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_15 +#if __MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_15 #include #include #endif @@ -44,7 +44,7 @@ #define DEBUG_WEBKIT_SIZING 0 -#if defined(MAC_OS_X_VERSION_10_11) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_11) +#if defined(MAC_OS_X_VERSION_10_11) && (__MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_11) #define wxWEBKIT_PROTOCOL_SINCE_10_11(proto) < proto > #else #define wxWEBKIT_PROTOCOL_SINCE_10_11(proto)