From f2bca436d5f40399470db69d1eac43c7108f9558 Mon Sep 17 00:00:00 2001 From: hogliux Date: Tue, 3 May 2016 11:13:11 +0100 Subject: [PATCH] Fix AUv3 version check for iOS --- .../juce_audio_plugin_client/AU/juce_AUv3_Wrapper.mm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/juce_audio_plugin_client/AU/juce_AUv3_Wrapper.mm b/modules/juce_audio_plugin_client/AU/juce_AUv3_Wrapper.mm index 7a4074fd67..f6617c789c 100644 --- a/modules/juce_audio_plugin_client/AU/juce_AUv3_Wrapper.mm +++ b/modules/juce_audio_plugin_client/AU/juce_AUv3_Wrapper.mm @@ -31,8 +31,16 @@ #import #import -#if (! defined MAC_OS_X_VERSION_MIN_REQUIRED) || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_8) - #error AUv3 needs Deployment Target OS X 10.8 or higher to compile +#if JUCE_MAC + #if (! defined MAC_OS_X_VERSION_MIN_REQUIRED) || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_8) + #error AUv3 needs Deployment Target OS X 10.8 or higher to compile + #endif +#endif + +#if JUCE_IOS + #if (! defined __IPHONE_OS_VERSION_MIN_REQUIRED) || (__IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_9_0) + #error AUv3 needs Deployment Target iOS 9.0 or higher to compile + #endif #endif #ifndef __OBJC2__