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

ObjCHelpers: Add new macros to help with version checking

This commit is contained in:
reuk 2024-10-29 13:11:26 +00:00
parent 7290d6dc2f
commit 3005b716fe
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
7 changed files with 20 additions and 12 deletions

View file

@ -58,7 +58,7 @@ namespace
const auto defaultPort = []
{
#if defined (MAC_OS_VERSION_12_0) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_12_0
#if JUCE_MAC_API_VERSION_CAN_BE_BUILT (12, 0)
if (@available (macOS 12.0, *))
return kIOMainPortDefault;
#endif