Avoid compilation warning under OS X 10.11

NSWindow.allowsAutomaticWindowTabbing property
is available since SDK 10.12.
This commit is contained in:
Artur Wieczorek
2020-01-19 19:45:43 +01:00
parent b9038a1e8c
commit ed8fd1893a

View File

@@ -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