From: Stephan Witt Date: Sat, 1 Jan 2022 17:46:32 +0000 (+0100) Subject: Guard new code for builds with OS X 10.11 SDK and lesser. X-Git-Tag: 2.4-beta2~942 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=718b735dfe9459edab125779593e6074faaf9973;p=lyx.git Guard new code for builds with OS X 10.11 SDK and lesser. --- diff --git a/src/support/AppleSupport.m b/src/support/AppleSupport.m index 7657e9db97..3a4f864e8e 100644 --- a/src/support/AppleSupport.m +++ b/src/support/AppleSupport.m @@ -24,6 +24,7 @@ void appleCleanupEditMenu() { void appleCleanupViewMenu() { +#if defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && (__MAC_OS_X_VERSION_MAX_ALLOWED >= 101200) // Remove the "Show Tab Bar" menu item from the "View" menu, if supported // See the Apple developer release notes: // What should an application which already has support for tabbing do? @@ -35,6 +36,8 @@ void appleCleanupViewMenu() { // Remove the "Enter Full Screen" menu item from the "View" menu [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSFullScreenMenuItemEverywhere"]; + +#endif }