aboutsummaryrefslogtreecommitdiff
path: root/audio/softsynth/fluidsynth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio/softsynth/fluidsynth.cpp')
-rw-r--r--audio/softsynth/fluidsynth.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/audio/softsynth/fluidsynth.cpp b/audio/softsynth/fluidsynth.cpp
index 4034b2ffc3..33a74a1524 100644
--- a/audio/softsynth/fluidsynth.cpp
+++ b/audio/softsynth/fluidsynth.cpp
@@ -35,7 +35,12 @@
#include "backends/platform/ios7/ios7_common.h"
#endif
+// Fluidsynth v2.1+ uses printf in one of it's headers, so this is
+// needed to allow compilation, as reported by eriktorbjorn on 20191215
+// This is in include/fluidsynth/log.h around line 82
+#define FORBIDDEN_SYMBOL_EXCEPTION_printf
#include <fluidsynth.h>
+#undef FORBIDDEN_SYMBOL_EXCEPTION_printf
class MidiDriver_FluidSynth : public MidiDriver_Emulated {
private: