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:
parent
42bd861d70
commit
f4f8f8e86b
2 changed files with 19 additions and 12 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue