From 8ef83759a72e1928c617e7b8abba5c1ed3632e89 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 28 Apr 2016 09:25:22 +0200 Subject: [PATCH] Track: disable TrackList::Add if MIDI support is disabled Fixes build failure when configured with --without-midi. --- src/Track.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Track.cpp b/src/Track.cpp index c21347ec5..3ed80cdef 100644 --- a/src/Track.cpp +++ b/src/Track.cpp @@ -878,7 +878,9 @@ Track *TrackList::Add(std::unique_ptr &&t) // Make instantiations for the linker to find template Track *TrackList::Add(std::unique_ptr &&); +#if defined(USE_MIDI) template Track *TrackList::Add(std::unique_ptr &&); +#endif template Track *TrackList::Add(std::unique_ptr &&); template Track *TrackList::Add(std::unique_ptr &&);