fix compilation --without-taglib / --without-curl

This commit is contained in:
Andrzej Rybczak
2012-08-15 23:40:54 +02:00
parent d3b48855fd
commit b1f5eeaa8b

View File

@@ -2222,7 +2222,9 @@ bool RefetchLyrics::canBeRun() const
void RefetchLyrics::Run() void RefetchLyrics::Run()
{ {
# ifdef HAVE_CURL_CURL_H
myLyrics->Refetch(); myLyrics->Refetch();
# endif // HAVE_CURL_CURL_H
} }
bool RefetchArtistInfo::canBeRun() const bool RefetchArtistInfo::canBeRun() const
@@ -2446,9 +2448,10 @@ bool ShowTagEditor::canBeRun() const
void ShowTagEditor::Run() void ShowTagEditor::Run()
{ {
# ifdef HAVE_TAGLIB_H
if (isMPDMusicDirSet()) if (isMPDMusicDirSet())
myTagEditor->SwitchTo(); myTagEditor->SwitchTo();
# endif // HAVE_TAGLIB_H
} }
bool ShowOutputs::canBeRun() const bool ShowOutputs::canBeRun() const