From 6dd2fbe813e2c35d7940954d0730fc11d34d275d Mon Sep 17 00:00:00 2001 From: Timur Doumler Date: Wed, 20 Apr 2016 14:32:18 +0100 Subject: [PATCH] AUv3: added compiler error if compiling with deployment target < 10.8, avoiding another more confusing compiler error "undefined symbol _main" that would otherwise appear instead. --- modules/juce_audio_plugin_client/AU/juce_AUv3_Wrapper.mm | 4 ++++ 1 file changed, 4 insertions(+) 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 afea2897f9..7a4074fd67 100644 --- a/modules/juce_audio_plugin_client/AU/juce_AUv3_Wrapper.mm +++ b/modules/juce_audio_plugin_client/AU/juce_AUv3_Wrapper.mm @@ -31,6 +31,10 @@ #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 +#endif + #ifndef __OBJC2__ #error AUv3 needs Objective-C 2 support (compile with 64-bit) #endif