diff options
author | Max Kellermann <max@musicpd.org> | 2020-05-27 14:26:37 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-05-27 15:03:35 +0200 |
commit | d276d8eda2857e2a6b985b7252f20e1e409709a2 (patch) | |
tree | b250f09d7861cb643a5b18296277df74488c26e9 /src/decoder | |
parent | ebcb5e9368a3002df53a797da8c6fb74dd1fae77 (diff) |
decoder/wildmidi: assume WildMidi is built as static library on Windows
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/plugins/WildmidiDecoderPlugin.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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 <wildmidi_lib.h> } |