From d276d8eda2857e2a6b985b7252f20e1e409709a2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 27 May 2020 14:26:37 +0200 Subject: [PATCH] decoder/wildmidi: assume WildMidi is built as static library on Windows --- src/decoder/plugins/WildmidiDecoderPlugin.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/decoder/plugins/WildmidiDecoderPlugin.cxx b/src/decoder/plugins/WildmidiDecoderPlugin.cxx index a5d8aa5c6..c06d2da03 100644 --- a/src/decoder/plugins/WildmidiDecoderPlugin.cxx +++ b/src/decoder/plugins/WildmidiDecoderPlugin.cxx @@ -29,6 +29,12 @@ #include "Log.hxx" #include "PluginUnavailable.hxx" +#ifdef _WIN32 +/* assume WildMidi is built as static library on Windows; without + this, linking to the static library would fail */ +#define WILDMIDI_STATIC +#endif + extern "C" { #include }