From 55a1e21ebbb42a4778f26188a9f75aecb0c1210c Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 12 Oct 2022 19:37:39 +0100 Subject: [PATCH] Fix LTO build if vst2 MIDI stuff is properly defined elsewhere Signed-off-by: falkTX --- distrho/src/DistrhoPluginVST2.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/distrho/src/DistrhoPluginVST2.cpp b/distrho/src/DistrhoPluginVST2.cpp index 7e09fad1..a8e27e2a 100644 --- a/distrho/src/DistrhoPluginVST2.cpp +++ b/distrho/src/DistrhoPluginVST2.cpp @@ -36,6 +36,10 @@ #include "xaymar-vst2/vst.h" +START_NAMESPACE_DISTRHO + +// -------------------------------------------------------------------------------------------------------------------- + extern "C" { // define the midi stuff ourselves @@ -85,8 +89,6 @@ typedef struct _VstTimeInfo { } -START_NAMESPACE_DISTRHO - // -------------------------------------------------------------------------------------------------------------------- typedef std::map StringMap;