From 28880fcee9d05d0dad34154994c6d4b5eab82954 Mon Sep 17 00:00:00 2001 From: Anthony Nicholls Date: Tue, 30 Sep 2025 14:44:34 +0100 Subject: [PATCH] macOS: Fix an issue in detecting the correct API level available This may be due to a bug in the macOS SDK but the user facing versions of these preprocessor definitions are returning the incorrect details for at least the macOS 26 SDK --- modules/juce_core/system/juce_TargetPlatform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_core/system/juce_TargetPlatform.h b/modules/juce_core/system/juce_TargetPlatform.h index ee433d3387..7850b4c6e9 100644 --- a/modules/juce_core/system/juce_TargetPlatform.h +++ b/modules/juce_core/system/juce_TargetPlatform.h @@ -128,7 +128,7 @@ // Expands to true if the API of the specified version is available at build time, false otherwise #define JUCE_MAC_API_VERSION_CAN_BE_BUILT(major, minor) \ - ((major) * 10000 + (minor) * 100 <= MAC_OS_X_VERSION_MAX_ALLOWED) + ((major) * 10000 + (minor) * 100 <= __MAC_OS_X_VERSION_MAX_ALLOWED) // Expands to true if the API of the specified version is available at build time, false otherwise #define JUCE_IOS_API_VERSION_CAN_BE_BUILT(major, minor) \ @@ -136,7 +136,7 @@ // Expands to true if the deployment target is greater or equal to the specified version, false otherwise #define JUCE_MAC_API_VERSION_MIN_REQUIRED_AT_LEAST(major, minor) \ - ((major) * 10000 + (minor) * 100 <= MAC_OS_X_VERSION_MIN_REQUIRED) + ((major) * 10000 + (minor) * 100 <= __MAC_OS_X_VERSION_MIN_REQUIRED) // Expands to true if the deployment target is greater or equal to the specified version, false otherwise #define JUCE_IOS_API_VERSION_MIN_REQUIRED_AT_LEAST(major, minor) \