fix compilation issue without taglib support and replace printf by std::cout
This commit is contained in:
@@ -18,6 +18,8 @@
|
|||||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
#include "tag_editor.h"
|
#include "tag_editor.h"
|
||||||
|
|
||||||
@@ -57,7 +59,7 @@ bool ConnectToMPD()
|
|||||||
{
|
{
|
||||||
if (!Mpd->Connect())
|
if (!Mpd->Connect())
|
||||||
{
|
{
|
||||||
printf("Cannot connect to mpd: %s\n", Mpd->GetErrorMessage().c_str());
|
std::cout << "Cannot connect to mpd: " << Mpd->GetErrorMessage() << std::endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -263,7 +265,7 @@ bool SortSongsByTrack(Song *a, Song *b)
|
|||||||
void WindowTitle(const string &status)
|
void WindowTitle(const string &status)
|
||||||
{
|
{
|
||||||
if (TERMINAL_TYPE != "linux" && Config.set_window_title)
|
if (TERMINAL_TYPE != "linux" && Config.set_window_title)
|
||||||
printf("\033]0;%s\7",status.c_str());
|
std::cout << "\033]0;" << status << "\7";
|
||||||
}
|
}
|
||||||
|
|
||||||
void EscapeUnallowedChars(string &s)
|
void EscapeUnallowedChars(string &s)
|
||||||
|
|||||||
@@ -18,6 +18,8 @@
|
|||||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
#include "mpdpp.h"
|
#include "mpdpp.h"
|
||||||
#include "ncmpcpp.h"
|
#include "ncmpcpp.h"
|
||||||
|
|
||||||
@@ -831,7 +833,7 @@ int main(int argc, char *argv[])
|
|||||||
if (COLS < 20 || LINES < 5)
|
if (COLS < 20 || LINES < 5)
|
||||||
{
|
{
|
||||||
endwin();
|
endwin();
|
||||||
printf("Screen too small!\n");
|
std::cout << "Screen too small!\n";
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3506,7 +3508,7 @@ int main(int argc, char *argv[])
|
|||||||
Mpd->Disconnect();
|
Mpd->Disconnect();
|
||||||
curs_set(1);
|
curs_set(1);
|
||||||
endwin();
|
endwin();
|
||||||
printf("\n");
|
std::cout << std::endl;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user