[LyX/master] Guard new code for builds with OS X 10.11 SDK and lesser.

Stephan Witt switt at lyx.org
Sat Jan 1 17:17:21 UTC 2022


commit 718b735dfe9459edab125779593e6074faaf9973
Author: Stephan Witt <switt at lyx.org>
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
 }
 
 


More information about the lyx-cvs mailing list