Skip to content

Commit 28880fc

Browse files
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
1 parent 81ca9e6 commit 28880fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/juce_core/system/juce_TargetPlatform.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,15 @@
128128

129129
// Expands to true if the API of the specified version is available at build time, false otherwise
130130
#define JUCE_MAC_API_VERSION_CAN_BE_BUILT(major, minor) \
131-
((major) * 10000 + (minor) * 100 <= MAC_OS_X_VERSION_MAX_ALLOWED)
131+
((major) * 10000 + (minor) * 100 <= __MAC_OS_X_VERSION_MAX_ALLOWED)
132132

133133
// Expands to true if the API of the specified version is available at build time, false otherwise
134134
#define JUCE_IOS_API_VERSION_CAN_BE_BUILT(major, minor) \
135135
((major) * 10000 + (minor) * 100 <= __IPHONE_OS_VERSION_MAX_ALLOWED)
136136

137137
// Expands to true if the deployment target is greater or equal to the specified version, false otherwise
138138
#define JUCE_MAC_API_VERSION_MIN_REQUIRED_AT_LEAST(major, minor) \
139-
((major) * 10000 + (minor) * 100 <= MAC_OS_X_VERSION_MIN_REQUIRED)
139+
((major) * 10000 + (minor) * 100 <= __MAC_OS_X_VERSION_MIN_REQUIRED)
140140

141141
// Expands to true if the deployment target is greater or equal to the specified version, false otherwise
142142
#define JUCE_IOS_API_VERSION_MIN_REQUIRED_AT_LEAST(major, minor) \

0 commit comments

Comments
 (0)