ensured building on ubuntu 18.04

This commit is contained in:
2024-12-01 18:53:16 +03:00
parent b59b42a40c
commit 88d849bee9
11 changed files with 194 additions and 252 deletions

View File

@@ -5,7 +5,13 @@
#include <QApplication>
#include <curl/curl.h>
#include <iostream>
#include <filesystem>
#if __GNUC__ < 8
# include <experimental/filesystem>
using namespace std::experimental::filesystem;
#else
# include <filesystem>
using std::filesystem;
#endif
#include <fstream>
#include <QTranslator>
@@ -25,7 +31,7 @@ int main(int argc, char *argv[]) {
curl_global_init(CURL_GLOBAL_ALL);
std::string program_data_path = get_path_relative_to_home(".local/share/checks_parser");
std::filesystem::create_directories(program_data_path);
create_directories(program_data_path);
std::string settings_file_path =
get_path_relative_to_home(".local/share/checks_parser/settings.json");