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:
parent
7290d6dc2f
commit
3005b716fe
7 changed files with 20 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue