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