Skip to content

Commit b82ceda

Browse files
committed
Fix v:os_appearance to work when building against older SDKs
Use the correct macros to do SDK ifdefs. Fix #973.
1 parent d3519c2 commit b82ceda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MacVim/Miscellaneous.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ - (NSInteger)tag
335335
int
336336
getCurrentAppearance(NSAppearance *appearance){
337337
int flag = 0; // for macOS 10.13 or eariler always return 0;
338-
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_14
338+
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14
339339
if (@available(macOS 10.14, *)) {
340340
NSAppearanceName appearanceName = [appearance bestMatchFromAppearancesWithNames:
341341
@[NSAppearanceNameAqua

0 commit comments

Comments
 (0)