Browse Source

Fix build against old systems

Signed-off-by: falkTX <falktx@falktx.com>
pull/452/head
falkTX 1 year ago
parent
commit
f2afcff718
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 12 additions and 0 deletions
  1. +8
    -0
      distrho/src/DistrhoPluginAU.cpp
  2. +4
    -0
      distrho/src/DistrhoPluginChecks.h

+ 8
- 0
distrho/src/DistrhoPluginAU.cpp View File

@@ -44,6 +44,14 @@ START_NAMESPACE_DISTRHO


// -------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------


#ifndef __MAC_12_3
enum {
kAudioUnitProperty_MIDIOutputBufferSizeHint = 66,
};
#endif

// --------------------------------------------------------------------------------------------------------------------

static const char* AudioUnitPropertyID2Str(const AudioUnitPropertyID prop) noexcept static const char* AudioUnitPropertyID2Str(const AudioUnitPropertyID prop) noexcept
{ {
switch (prop) switch (prop)


+ 4
- 0
distrho/src/DistrhoPluginChecks.h View File

@@ -45,6 +45,8 @@
// -------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------
// Check that symbol macros are well defined // Check that symbol macros are well defined


#ifdef DISTRHO_PROPER_CPP11_SUPPORT

#ifdef DISTRHO_PLUGIN_AU_TYPE #ifdef DISTRHO_PLUGIN_AU_TYPE
static_assert(sizeof(STRINGIFY(DISTRHO_PLUGIN_AU_TYPE)) == 5, "The macro DISTRHO_PLUGIN_AU_TYPE has incorrect length"); static_assert(sizeof(STRINGIFY(DISTRHO_PLUGIN_AU_TYPE)) == 5, "The macro DISTRHO_PLUGIN_AU_TYPE has incorrect length");
#endif #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"); static_assert(sizeof(STRINGIFY(DISTRHO_PLUGIN_UNIQUE_ID)) == 5, "The macro DISTRHO_PLUGIN_UNIQUE_ID has incorrect length");
#endif #endif


#endif

// -------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------
// Define optional macros if not done yet // Define optional macros if not done yet




Loading…
Cancel
Save