From 650b36eba240f6b122d82287d1f9dbd1aaa2dd75 Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 11 Feb 2021 01:31:07 +0000 Subject: [PATCH] audiofile mp3: disable SIMD for macos-old builds Signed-off-by: falkTX --- source/modules/audio_decoder/ad_minimp3.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/modules/audio_decoder/ad_minimp3.c b/source/modules/audio_decoder/ad_minimp3.c index bffafa400..691c931ab 100644 --- a/source/modules/audio_decoder/ad_minimp3.c +++ b/source/modules/audio_decoder/ad_minimp3.c @@ -25,6 +25,12 @@ #include "ad_plugin.h" +// disable SIMD for macos-old builds +#include "CarlaDefines.h" +#if defined(CARLA_OS_MAC) && !defined(CARLA_PROPER_CPP11_SUPPORT) +# define MINIMP3_NO_SIMD +#endif + #define MINIMP3_FLOAT_OUTPUT #define MINIMP3_IMPLEMENTATION #include "minimp3_ex.h"