Skip to content

Commit ee73f16

Browse files
authored
Merge pull request #974 from ychin/fix-os-appearance-macos-14
Fix v:os_appearance to work when building against older SDKs
2 parents 53372da + b82ceda commit ee73f16

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)