1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +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

@ -564,6 +564,14 @@ private:
Class klass = nullptr;
};
// 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 * 10'000 + 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) \
major * 10'000 + minor * 100 <= __IPHONE_OS_VERSION_MAX_ALLOWED
#if JUCE_IOS
// Defines a function that will check the requested version both at