compiling on windows working

This commit is contained in:
MrBesen 2020-12-14 15:18:07 +01:00
parent d45b8954d2
commit bb068d12e4
2 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,7 @@
# statdessen: `make clean; make all -j` verwenden
# windows name
# NAME = lib$(NAMESHORT).dll
NAME = lib$(NAMESHORT).dll
NAMESHORT = mrbesen
NAME ?= lib$(NAMESHORT).so

View File

@ -65,6 +65,9 @@ template bool mrbesen::files::scan<std::set<std::string>>(const std::string&, st
template bool mrbesen::files::scan<std::multiset<std::string>>(const std::string&, std::insert_iterator<std::multiset<std::string>>, bool, fileNameFilter);
bool mrbesen::files::scan(const std::string& path, fileCallback clb, bool prefixdir, fileNameFilter fnf) {
#if defined(_WIN32) ||defined(_WIN64)
return false;
#else
std::string path_ = path;
mrbesen::util::insertEnd(path_, "/");
@ -91,6 +94,7 @@ bool mrbesen::files::scan(const std::string& path, fileCallback clb, bool prefix
closedir(dir);
return true;
#endif
}
bool mrbesen::files::readFile(const std::string& name, std::ostream& output, unsigned int maxsize) {