mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-11 23:25:53 +01:00
Make VSTControlOSX.mm compilable with _LP64
This commit is contained in:
@@ -109,7 +109,11 @@ bool VSTControl::Create(wxWindow *parent, VSTEffectLink *link)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!mView && !mHIView)
|
||||
if (!mView
|
||||
#if !defined(_LP64)
|
||||
&& !mHIView
|
||||
#endif
|
||||
)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -173,12 +173,20 @@ bool AUControl::Create(wxWindow *parent, AudioComponent comp, AudioUnit unit, bo
|
||||
#endif
|
||||
}
|
||||
|
||||
if (!mView && !mHIView)
|
||||
if (!mView
|
||||
#if !defined(_LP64)
|
||||
&& !mHIView
|
||||
#endif
|
||||
)
|
||||
{
|
||||
CreateGeneric();
|
||||
}
|
||||
|
||||
if (!mView && !mHIView)
|
||||
if (!mView
|
||||
#if !defined(_LP64)
|
||||
&& !mHIView
|
||||
#endif
|
||||
)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -186,10 +194,12 @@ bool AUControl::Create(wxWindow *parent, AudioComponent comp, AudioUnit unit, bo
|
||||
// wxWidgets takes ownership so safenew
|
||||
SetPeer(safenew AUControlImpl(this, mAUView));
|
||||
|
||||
#if !defined(_LP64)
|
||||
if (mHIView)
|
||||
{
|
||||
CreateCarbonOverlay();
|
||||
}
|
||||
#endif
|
||||
|
||||
// Must get the size again since SetPeer() could cause it to change
|
||||
SetInitialSize(GetMinSize());
|
||||
|
||||
Reference in New Issue
Block a user