DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit f2afcff718b7c19754b162b8a0b1911dc86a0a4c
parent 9be6a49c42c8308001cbbd2f0f47cae25d547d9c
Author: falkTX <falktx@falktx.com>
Date:   Mon, 26 Feb 2024 10:47:40 +0100

Fix build against old systems

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdistrho/src/DistrhoPluginAU.cpp | 8++++++++
Mdistrho/src/DistrhoPluginChecks.h | 4++++
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/distrho/src/DistrhoPluginAU.cpp b/distrho/src/DistrhoPluginAU.cpp @@ -44,6 +44,14 @@ START_NAMESPACE_DISTRHO // -------------------------------------------------------------------------------------------------------------------- +#ifndef __MAC_12_3 +enum { + kAudioUnitProperty_MIDIOutputBufferSizeHint = 66, +}; +#endif + +// -------------------------------------------------------------------------------------------------------------------- + static const char* AudioUnitPropertyID2Str(const AudioUnitPropertyID prop) noexcept { switch (prop) diff --git a/distrho/src/DistrhoPluginChecks.h b/distrho/src/DistrhoPluginChecks.h @@ -45,6 +45,8 @@ // -------------------------------------------------------------------------------------------------------------------- // Check that symbol macros are well defined +#ifdef DISTRHO_PROPER_CPP11_SUPPORT + #ifdef DISTRHO_PLUGIN_AU_TYPE static_assert(sizeof(STRINGIFY(DISTRHO_PLUGIN_AU_TYPE)) == 5, "The macro DISTRHO_PLUGIN_AU_TYPE has incorrect length"); #endif @@ -57,6 +59,8 @@ static_assert(sizeof(STRINGIFY(DISTRHO_PLUGIN_BRAND_ID)) == 5, "The macro DISTRH static_assert(sizeof(STRINGIFY(DISTRHO_PLUGIN_UNIQUE_ID)) == 5, "The macro DISTRHO_PLUGIN_UNIQUE_ID has incorrect length"); #endif +#endif + // -------------------------------------------------------------------------------------------------------------------- // Define optional macros if not done yet