From 691993cbb630b29291f74ddd32420252c8ed9524 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Thu, 15 Aug 2024 19:01:23 +0800 Subject: [PATCH] DisplayServer (macOS): fix building on ancient macOS version Fix #1190 --- src/detection/displayserver/displayserver_apple.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/detection/displayserver/displayserver_apple.c b/src/detection/displayserver/displayserver_apple.c index d05eb8b1e..ab2abe5e2 100644 --- a/src/detection/displayserver/displayserver_apple.c +++ b/src/detection/displayserver/displayserver_apple.c @@ -89,10 +89,12 @@ static void detectDisplays(FFDisplayServerResult* ds) display->bitDepth = (uint8_t) bitDepth; } + #ifdef MAC_OS_X_VERSION_10_15 if (CoreDisplay_Display_IsHDRModeEnabled) { display->hdrEnabled = CoreDisplay_Display_IsHDRModeEnabled(screen); } + #endif } CGDisplayModeRelease(mode); }