From f38d70fd40c1650f51a328b7066bc7d74c9bb438 Mon Sep 17 00:00:00 2001 From: ksherlock Date: Mon, 3 Oct 2022 22:02:42 -0400 Subject: [PATCH] MACOS_X_VERSION_10_15 is not defined on really SDKs. (#10388) --- src/osd/modules/debugger/osx/debugview.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/modules/debugger/osx/debugview.mm b/src/osd/modules/debugger/osx/debugview.mm index 540fa41815d..cee21540572 100644 --- a/src/osd/modules/debugger/osx/debugview.mm +++ b/src/osd/modules/debugger/osx/debugview.mm @@ -52,7 +52,7 @@ static void debugwin_view_update(debug_view &view, void *osdprivate) + (void)initialize { // 10.15 and better get full adaptive Dark Mode support -#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_15 +#if defined(MAC_OS_X_VERSION_10_15) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_15 DefaultForeground = [[NSColor textColor] retain]; ChangedForeground = [[NSColor systemRedColor] retain]; CommentForeground = [[NSColor systemGreenColor] retain];