From 81ac333cc9939bacde2252795e18b5522ed9eac4 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Thu, 8 Jul 2021 10:09:17 +0200 Subject: [PATCH] Adapt kiwix-tools to the new libkiwix headers. Fix #467 --- src/manager/kiwix-manage.cpp | 6 +++--- src/server/kiwix-serve.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/manager/kiwix-manage.cpp b/src/manager/kiwix-manage.cpp index 14dd2a0..2275f81 100644 --- a/src/manager/kiwix-manage.cpp +++ b/src/manager/kiwix-manage.cpp @@ -18,8 +18,8 @@ */ #include -#include #include +#include #include #include @@ -255,8 +255,8 @@ int main(int argc, char** argv) } /* Try to read the file */ - libraryPath = isRelativePath(libraryPath) - ? computeAbsolutePath(getCurrentDirectory(), libraryPath) + libraryPath = kiwix::isRelativePath(libraryPath) + ? kiwix::computeAbsolutePath(kiwix::getCurrentDirectory(), libraryPath) : libraryPath; kiwix::Manager manager(&library); manager.readFile(libraryPath, false); diff --git a/src/server/kiwix-serve.cpp b/src/server/kiwix-serve.cpp index ae742aa..7ce26f3 100644 --- a/src/server/kiwix-serve.cpp +++ b/src/server/kiwix-serve.cpp @@ -21,7 +21,7 @@ #include #include #include -#include +#include #ifdef _WIN32 # include @@ -196,8 +196,8 @@ int main(int argc, char** argv) try { string libraryPath - = isRelativePath(*itr) - ? computeAbsolutePath(getCurrentDirectory(), *itr) + = kiwix::isRelativePath(*itr) + ? kiwix::computeAbsolutePath(kiwix::getCurrentDirectory(), *itr) : *itr; retVal = manager.readFile(libraryPath, true, trustlibrary); } catch (...) {