make it compile under mingw32 --without-curl --without-taglib

ncmpcpp can be built for windows \o/
pdcurses and regex libraries are needed for this though.
This commit is contained in:
Andrzej Rybczak
2009-03-25 22:08:18 +01:00
parent fcf4a44042
commit 65f52da949
7 changed files with 51 additions and 10 deletions

View File

@@ -19,7 +19,11 @@
***************************************************************************/
#include <cstring>
#include <sys/stat.h>
#ifdef WIN32
# include <io.h>
#else
# include <sys/stat.h>
#endif // WIN32
#include <fstream>
#include "lyrics.h"
@@ -166,7 +170,11 @@ void *Lyrics::Get(void *song)
EscapeUnallowedChars(filename);
Filename = Folder + "/" + filename;
mkdir(Folder.c_str(), 0755);
mkdir(Folder.c_str()
# ifndef WIN32
, 0755
# endif // !WIN32
);
std::ifstream input(Filename.c_str());