1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

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
This commit is contained in:
Anthony Nicholls 2025-09-30 14:44:34 +01:00 committed by Anthony Nicholls
parent 81ca9e63ef
commit 28880fcee9

View file

@ -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) \