1
0
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:
Paul Licameli 2018-11-15 10:36:03 -05:00
parent 7c1216edc6
commit 7d0b4c582a
2 changed files with 17 additions and 3 deletions

View File

@ -109,7 +109,11 @@ bool VSTControl::Create(wxWindow *parent, VSTEffectLink *link)
}
#endif
if (!mView && !mHIView)
if (!mView
#if !defined(_LP64)
&& !mHIView
#endif
)
{
return false;
}

View File

@ -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());