From ed8fd1893a2c53ca4fdde763c59ba5a9c2d3ba1e Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 19 Jan 2020 19:45:43 +0100 Subject: [PATCH] Avoid compilation warning under OS X 10.11 NSWindow.allowsAutomaticWindowTabbing property is available since SDK 10.12. --- src/osx/cocoa/utils.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osx/cocoa/utils.mm b/src/osx/cocoa/utils.mm index 507a2672b9..1b0dbb6eff 100644 --- a/src/osx/cocoa/utils.mm +++ b/src/osx/cocoa/utils.mm @@ -478,10 +478,12 @@ 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 ( WX_IS_MACOS_AVAILABLE(10, 12) ) { [NSWindow setAllowsAutomaticWindowTabbing:enable]; } +#endif // macOS 10.12+ } extern // used from src/osx/core/display.cpp