From b4b5586efd836d79c0d4ab9159130f6f33e27afe Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 11 Jun 2018 09:33:42 +0200 Subject: Fixed portability issue, now it works on msys2 windows build as well --- ice40/main.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ice40/main.cc b/ice40/main.cc index 3b5ffd53..e87862be 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -20,6 +20,7 @@ #ifndef PYTHON_MODULE #include +#include #include #include #include @@ -102,7 +103,7 @@ int main(int argc, char *argv[]) if (vm.count("help") || argc == 1) { help: - std::cout << basename(argv[0]) + std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git " "sha1 " GIT_COMMIT_HASH_STR ")\n"; std::cout << "\n"; @@ -111,7 +112,7 @@ int main(int argc, char *argv[]) } if (vm.count("version")) { - std::cout << basename(argv[0]) + std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git " "sha1 " GIT_COMMIT_HASH_STR ")\n"; return 1; -- cgit v1.2.3