From c74d3cc12a637fbe21d28ac360c8ba44e82e96f6 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 17 Sep 2015 19:08:41 +0100 Subject: [PATCH] Workaround for problems with Xcode 7 SDK headers. --- modules/juce_core/system/juce_TargetPlatform.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/juce_core/system/juce_TargetPlatform.h b/modules/juce_core/system/juce_TargetPlatform.h index 75e363f3a5..6f900ec797 100644 --- a/modules/juce_core/system/juce_TargetPlatform.h +++ b/modules/juce_core/system/juce_TargetPlatform.h @@ -58,6 +58,13 @@ #undef Point #undef Component + #if JUCE_PROJUCER_LIVE_BUILD + // This hack is a workaround for a bug (?) in Apple's 10.11 SDK headers + // which cause some configurations of Clang to throw out an error.. + #undef CF_OPTIONS + #define CF_OPTIONS(_type, _name) _type _name; enum + #endif + #if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR #define JUCE_IPHONE 1 #define JUCE_IOS 1