From 718b735dfe9459edab125779593e6074faaf9973 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Sat, 1 Jan 2022 18:46:32 +0100 Subject: [PATCH] Guard new code for builds with OS X 10.11 SDK and lesser. --- src/support/AppleSupport.m | 3 +++ 1 file changed, 3 insertions(+) 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 } -- 2.39.2