mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-08 16:11:14 +02:00
Make VSTControlOSX.mm compilable with _LP64
This commit is contained in:
parent
7c1216edc6
commit
7d0b4c582a
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user