fix compilation --without-taglib
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include <algorithm>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include "actions.h"
|
#include "actions.h"
|
||||||
@@ -1460,9 +1461,9 @@ bool EditDirectoryName::canBeRun() const
|
|||||||
# ifdef HAVE_TAGLIB_H
|
# ifdef HAVE_TAGLIB_H
|
||||||
|| (myScreen->ActiveWindow() == myTagEditor->Dirs
|
|| (myScreen->ActiveWindow() == myTagEditor->Dirs
|
||||||
&& !myTagEditor->Dirs->empty()
|
&& !myTagEditor->Dirs->empty()
|
||||||
&& myTagEditor->Dirs->choice() > 0))
|
&& myTagEditor->Dirs->choice() > 0)
|
||||||
# endif // HAVE_TAGLIB_H
|
# endif // HAVE_TAGLIB_H
|
||||||
;
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditDirectoryName::Run()
|
void EditDirectoryName::Run()
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
#include "playlist.h"
|
#include "playlist.h"
|
||||||
|
#include "regex_filter.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include "status.h"
|
#include "status.h"
|
||||||
#include "tag_editor.h"
|
#include "tag_editor.h"
|
||||||
|
|||||||
@@ -349,6 +349,7 @@ void Display::Songs(NC::Menu<MPD::Song> &menu, HasSongs *screen, const std::stri
|
|||||||
showSongs(menu, menu.drawn()->value(), *screen, format);
|
showSongs(menu, menu.drawn()->value(), *screen, format);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_TAGLIB_H
|
||||||
void Display::Tags(NC::Menu<MPD::MutableSong> &menu)
|
void Display::Tags(NC::Menu<MPD::MutableSong> &menu)
|
||||||
{
|
{
|
||||||
const MPD::MutableSong &s = menu.drawn()->value();
|
const MPD::MutableSong &s = menu.drawn()->value();
|
||||||
@@ -365,6 +366,7 @@ void Display::Tags(NC::Menu<MPD::MutableSong> &menu)
|
|||||||
menu << s.getName() << Config.color2 << " -> " << NC::clEnd << s.getNewURI();
|
menu << s.getName() << Config.color2 << " -> " << NC::clEnd << s.getNewURI();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // HAVE_TAGLIB_H
|
||||||
|
|
||||||
void Display::Outputs(NC::Menu<MPD::Output> &menu)
|
void Display::Outputs(NC::Menu<MPD::Output> &menu)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
#include "playlist.h"
|
#include "playlist.h"
|
||||||
#include "playlist_editor.h"
|
#include "playlist_editor.h"
|
||||||
#include "mpdpp.h"
|
#include "mpdpp.h"
|
||||||
|
#include "regex_filter.h"
|
||||||
#include "status.h"
|
#include "status.h"
|
||||||
#include "tag_editor.h"
|
#include "tag_editor.h"
|
||||||
#include "utility/comparators.h"
|
#include "utility/comparators.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user