From 74719b762f32ec1c4c36e3718c81a42f265e3e7e Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Fri, 20 Jul 2018 08:18:28 +0200 Subject: [PATCH] platform tweak --- src/core/database.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/database.cpp b/src/core/database.cpp index 28c6b8f..97baab6 100644 --- a/src/core/database.cpp +++ b/src/core/database.cpp @@ -15,9 +15,9 @@ Database::Database() { namespace fs = std::filesystem; -#if defined(__linux__) +#if defined(__linux__) || defined (__APPLE__) fs::path dbpath = fs::path(std::getenv("HOME")) / ".local/share/kima2"; -#elif defined(__WIN64) || defined(__WIN32) +#elif defined(_WIN64) || defined(_WIN32) fs::path dbpath = fs::path(std::getenv("LOCALAPPDATA") / "/kima2"; #else throw std::runtime_error("Platform not supported.");