summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author ksherlock <ksherlock@gmail.com>2022-10-03 22:02:42 -0400
committer GitHub <noreply@github.com>2022-10-03 22:02:42 -0400
commitf38d70fd40c1650f51a328b7066bc7d74c9bb438 (patch)
treeb219aadb28cd46d5f28bb493e915dee69c690217
parentf4b23f173771db595251ea3e1117445f28a8baf0 (diff)
MACOS_X_VERSION_10_15 is not defined on really SDKs. (#10388)
-rw-r--r--src/osd/modules/debugger/osx/debugview.mm2
1 files changed, 1 insertions, 1 deletions
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];