mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Compatibility: Add new macros for straightforward checking of minimum deployment target
This also fixes a bug introduced in f7c7225f5c
where the condition guarding the definition of traitCollectionDidChange
was incorrect. This function is never required if the deployment target
is at least 17.0.
This commit is contained in:
parent
8e086c7f05
commit
93640b63ff
7 changed files with 26 additions and 16 deletions
|
|
@ -70,7 +70,7 @@
|
|||
#import <IOKit/pwr_mgt/IOPMLib.h>
|
||||
#import <MetalKit/MetalKit.h>
|
||||
|
||||
#if defined (MAC_OS_VERSION_14_4) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_VERSION_14_4
|
||||
#if JUCE_MAC_API_VERSION_MIN_REQUIRED_AT_LEAST (14, 4)
|
||||
#import <ScreenCaptureKit/ScreenCaptureKit.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -1028,7 +1028,7 @@ static void postTraitChangeNotification (UITraitCollection* previousTraitCollect
|
|||
object: nil];
|
||||
}
|
||||
|
||||
#if JUCE_IOS_API_VERSION_CAN_BE_BUILT (17, 0)
|
||||
#if ! JUCE_IOS_API_VERSION_MIN_REQUIRED_AT_LEAST (17, 0)
|
||||
- (void) traitCollectionDidChange: (UITraitCollection*) previousTraitCollection
|
||||
{
|
||||
[super traitCollectionDidChange: previousTraitCollection];
|
||||
|
|
|
|||
|
|
@ -531,7 +531,7 @@ static Image createNSWindowSnapshot (NSWindow* nsWindow)
|
|||
return image;
|
||||
};
|
||||
|
||||
#if defined (MAC_OS_VERSION_14_4) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_VERSION_14_4
|
||||
#if JUCE_MAC_API_VERSION_MIN_REQUIRED_AT_LEAST (14, 4)
|
||||
|
||||
if (dlopen ("/System/Library/Frameworks/ScreenCaptureKit.framework/ScreenCaptureKit", RTLD_LAZY) == nullptr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue