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

VST3 Client: Fix build when JUCE_VST3_CAN_REPLACE_VST2 is enabled

This commit is contained in:
attila 2021-10-14 16:19:44 +02:00
parent 7da8b73a96
commit 63ac579c1b
2 changed files with 16 additions and 0 deletions

View file

@ -65,6 +65,7 @@ JUCE_BEGIN_NO_SANITIZE ("vptr")
namespace Vst2
{
struct AEffect;
#include "pluginterfaces/vst2.x/vstfxstore.h"
}

View file

@ -44,6 +44,21 @@ typedef struct ComponentInstanceRecord* AudioComponentInstance;
typedef AudioComponentInstance AudioUnit;
//==============================================================================
/* If you are including the VST headers inside a namespace this forward
declaration may cause a collision with the contents of `aeffect.h`.
If that is the case you can avoid the collision by placing a `struct AEffect;`
forward declaration inside the namespace and before the inclusion of the VST
headers, e.g. @code
namespace Vst2
{
struct AEffect;
#include <pluginterfaces/vst2.x/aeffect.h>
#include <pluginterfaces/vst2.x/aeffectx.h>
}
@endcode
*/
struct AEffect;
//==============================================================================