1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-12 07:35:51 +01: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 #endif
if (!mView && !mHIView) if (!mView
#if !defined(_LP64)
&& !mHIView
#endif
)
{ {
return false; return false;
} }

View File

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