1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed audio plugin mac build.

This commit is contained in:
Julian Storer 2011-09-09 16:03:48 +01:00
parent 3d5b7685cd
commit 02494168e6
2 changed files with 12 additions and 2 deletions

View file

@ -40,8 +40,15 @@
#include <AudioUnit/AUCocoaUIView.h>
#include <AudioUnit/AudioUnit.h>
#include <AudioToolbox/AudioUnitUtilities.h>
#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

View file

@ -47,8 +47,6 @@
#undef Time
#else
#include <Cocoa/Cocoa.h>
#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 <Cocoa/Cocoa.h>
#include <Carbon/Carbon.h>
#undef Point
#undef Component
#else
#include <Cocoa/Cocoa.h>
#endif
#endif