From dc92f2e9dc987bd675578d80246d3a8c1f145499 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Thu, 11 Jun 2020 15:35:13 +0200 Subject: [PATCH] Add compilation guards for macOS 10.14 to avoid warnings NSColor.linkColor is not available since macOS 10.10 as it is stated in the Appkit documentation but since 10.14 - see http://codeworkshop.net/objc-diff/sdkdiffs/macos/10.14/AppKit.html --- src/osx/cocoa/settings.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osx/cocoa/settings.mm b/src/osx/cocoa/settings.mm index 59400e7e08..4493db33f9 100644 --- a/src/osx/cocoa/settings.mm +++ b/src/osx/cocoa/settings.mm @@ -163,8 +163,8 @@ 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_10 - if ( WX_IS_MACOS_AVAILABLE(10, 10) ) +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 + if ( WX_IS_MACOS_AVAILABLE(10, 14) ) { sysColor = [NSColor linkColor]; }