From bb068d12e4684482e97a25d0801f89fa27237a44 Mon Sep 17 00:00:00 2001 From: MrBesen Date: Mon, 14 Dec 2020 15:18:07 +0100 Subject: [PATCH] compiling on windows working --- Makefile | 2 +- src/files.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5da8747..f98e789 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/src/files.cpp b/src/files.cpp index b80f5ff..dc7cf26 100644 --- a/src/files.cpp +++ b/src/files.cpp @@ -65,6 +65,9 @@ template bool mrbesen::files::scan>(const std::string&, st template bool mrbesen::files::scan>(const std::string&, std::insert_iterator>, 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) {