]> git.lyx.org Git - lyx.git/commitdiff
Guard new code for builds with OS X 10.11 SDK and lesser.
authorStephan Witt <switt@lyx.org>
Sat, 1 Jan 2022 17:46:32 +0000 (18:46 +0100)
committerStephan Witt <switt@lyx.org>
Sat, 1 Jan 2022 17:46:32 +0000 (18:46 +0100)
src/support/AppleSupport.m

index 7657e9db974e722e2d042eafc795571d190b2c3c..3a4f864e8e44420a0f8f879aebc24092d6bf02c3 100644 (file)
@@ -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
 }