Compile error (and suggested fix) for ppc VST plug-in hosts


#1

This change to juce_VSTPluginFormat.cpp locally defined a type, typedef ReferenceCountedObjectPtr Ptr, which collides with the Mac Ptr type. The result of which is, VST plug-in hosting won’t build for a ppc target.

[code]Ptr ptr;
Str255 errorText;

OSErr err = GetMemFragment (*resHandle, GetHandleSize (resHandle),
name, kPrivateCFragCopy,
&fragId, &ptr, errorText);[/code]

So I’d suggest changing the Ptr definition here to:[code]::Ptr ptr;
Str255 errorText;

OSErr err = GetMemFragment (*resHandle, GetHandleSize (resHandle),
name, kPrivateCFragCopy,
&fragId, &ptr, errorText);[/code]


#2

Sure, will change that, thanks!