commit 718b735dfe9459edab125779593e6074faaf9973
Author: Stephan Witt <[email protected]>
Date:   Sat Jan 1 18:46:32 2022 +0100

    Guard new code for builds with OS X 10.11 SDK and lesser.
---
 src/support/AppleSupport.m |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/support/AppleSupport.m b/src/support/AppleSupport.m
index 7657e9d..3a4f864 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
 }
 
 
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to