1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

iOS: Fix build issues with Xcode 10.1

This commit is contained in:
reuk 2023-01-09 17:19:43 +00:00
parent 42bd861d70
commit f4f8f8e86b
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
2 changed files with 19 additions and 12 deletions

View file

@ -701,12 +701,13 @@ struct iOSAudioIODevice::Pimpl : public AsyncUpdater
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
Image getIcon (int size)
{
#if TARGET_OS_MACCATALYST
if (@available (macCatalyst 14.0, *))
#endif
{
if (interAppAudioConnected)
{
UIImage* hostUIImage = AudioOutputUnitGetHostIcon (audioUnit, size);
if (hostUIImage != nullptr)
if (UIImage* hostUIImage = AudioOutputUnitGetHostIcon (audioUnit, size))
return juce_createImageFromUIImage (hostUIImage);
}
}