From b82ceda0b828b8140e0fc33f11bcc45e8d6796df Mon Sep 17 00:00:00 2001 From: Yee Cheng Chin Date: Thu, 24 Oct 2019 00:38:45 -0700 Subject: [PATCH] Fix v:os_appearance to work when building against older SDKs Use the correct macros to do SDK ifdefs. Fix #973. --- src/MacVim/Miscellaneous.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MacVim/Miscellaneous.m b/src/MacVim/Miscellaneous.m index 74fd8dabc4..68975fa4ad 100644 --- a/src/MacVim/Miscellaneous.m +++ b/src/MacVim/Miscellaneous.m @@ -335,7 +335,7 @@ shouldUseBufferedDrawing() int getCurrentAppearance(NSAppearance *appearance){ int flag = 0; // for macOS 10.13 or eariler always return 0; -#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_14 +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14 if (@available(macOS 10.14, *)) { NSAppearanceName appearanceName = [appearance bestMatchFromAppearancesWithNames: @[NSAppearanceNameAqua