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
|
#endif
|
||||||
|
|
||||||
if (!mView && !mHIView)
|
if (!mView
|
||||||
|
#if !defined(_LP64)
|
||||||
|
&& !mHIView
|
||||||
|
#endif
|
||||||
|
)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -173,12 +173,20 @@ bool AUControl::Create(wxWindow *parent, AudioComponent comp, AudioUnit unit, bo
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mView && !mHIView)
|
if (!mView
|
||||||
|
#if !defined(_LP64)
|
||||||
|
&& !mHIView
|
||||||
|
#endif
|
||||||
|
)
|
||||||
{
|
{
|
||||||
CreateGeneric();
|
CreateGeneric();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mView && !mHIView)
|
if (!mView
|
||||||
|
#if !defined(_LP64)
|
||||||
|
&& !mHIView
|
||||||
|
#endif
|
||||||
|
)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -186,10 +194,12 @@ bool AUControl::Create(wxWindow *parent, AudioComponent comp, AudioUnit unit, bo
|
|||||||
// wxWidgets takes ownership so safenew
|
// wxWidgets takes ownership so safenew
|
||||||
SetPeer(safenew AUControlImpl(this, mAUView));
|
SetPeer(safenew AUControlImpl(this, mAUView));
|
||||||
|
|
||||||
|
#if !defined(_LP64)
|
||||||
if (mHIView)
|
if (mHIView)
|
||||||
{
|
{
|
||||||
CreateCarbonOverlay();
|
CreateCarbonOverlay();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Must get the size again since SetPeer() could cause it to change
|
// Must get the size again since SetPeer() could cause it to change
|
||||||
SetInitialSize(GetMinSize());
|
SetInitialSize(GetMinSize());
|
||||||
|
|||||||
Reference in New Issue
Block a user