Fix small windows/mingw portability issues in code used by the GUI

This commit is contained in:
Jean-Francois Dockes
2015-10-07 09:25:28 +02:00
parent 3b18facc16
commit 2a96ee4a27
9 changed files with 191 additions and 33 deletions
+2 -2
View File
@@ -33,12 +33,12 @@ static bool urltopath(RclConfig* cnf,
const Rcl::Doc& idoc, string& fn, struct stat& st)
{
// The url has to be like file://
if (idoc.url.find(cstr_fileu) != 0) {
fn = fileurltolocalpath(idoc.url);
if (fn.empty()) {
LOGERR(("FSDocFetcher::fetch/sig: non fs url: [%s]\n",
idoc.url.c_str()));
return false;
}
fn = idoc.url.substr(7, string::npos);
cnf->setKeyDir(path_getfather(fn));
bool follow = false;
cnf->getConfParam("followLinks", &follow);