From 02494168e66a6f2235c4b62a35cafc796c3f3625 Mon Sep 17 00:00:00 2001 From: Julian Storer Date: Fri, 9 Sep 2011 16:03:48 +0100 Subject: [PATCH] Fixed audio plugin mac build. --- modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm | 9 +++++++++ .../utility/juce_IncludeSystemHeaders.h | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm b/modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm index 777bee129b..4108f3301e 100644 --- a/modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm +++ b/modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm @@ -40,8 +40,15 @@ #include #include #include + +#if JUCE_SUPPORT_CARBON + #define Point CarbonDummyPointName + #define Component CarbonDummyCompName +#endif #include "AUMIDIEffectBase.h" #include "MusicDeviceBase.h" +#undef Point +#undef Component /** The BUILD_AU_CARBON_UI flag lets you specify whether old-school carbon hosts are supported as well as ones that can open a cocoa view. If this is enabled, you'll need to also add the AUCarbonBase @@ -57,7 +64,9 @@ #if BUILD_AU_CARBON_UI #undef Button + #define Point CarbonDummyPointName #include "AUCarbonViewBase.h" + #undef Point class JuceAUView; #endif diff --git a/modules/juce_audio_plugin_client/utility/juce_IncludeSystemHeaders.h b/modules/juce_audio_plugin_client/utility/juce_IncludeSystemHeaders.h index 5b98e65165..ad78cfef7e 100644 --- a/modules/juce_audio_plugin_client/utility/juce_IncludeSystemHeaders.h +++ b/modules/juce_audio_plugin_client/utility/juce_IncludeSystemHeaders.h @@ -47,8 +47,6 @@ #undef Time #else - #include - #ifndef JUCE_SUPPORT_CARBON #define JUCE_SUPPORT_CARBON 1 #endif @@ -56,8 +54,11 @@ #if JUCE_SUPPORT_CARBON #define Point CarbonDummyPointName #define Component CarbonDummyCompName + #include #include #undef Point #undef Component + #else + #include #endif #endif