ensured building on ubuntu 18.04
This commit is contained in:
10
main.cpp
10
main.cpp
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user