mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
d335527a70
We have basically this same bit of code in tons of places; consolidate it into llarp::util::slurp_file/llarp::util::dump_file. Also renames all the extra junk that crept into llarp/util/fs.hpp out of there into llarp/util/file.hpp instead.
16 lines
306 B
C++
16 lines
306 B
C++
#pragma once
|
|
|
|
#ifdef USE_GHC_FILESYSTEM
|
|
#include <ghc/filesystem.hpp>
|
|
namespace fs = ghc::filesystem;
|
|
#else
|
|
#include <filesystem>
|
|
namespace fs
|
|
{
|
|
using namespace std::filesystem;
|
|
using ifstream = std::ifstream;
|
|
using ofstream = std::ofstream;
|
|
using fstream = std::fstream;
|
|
} // namespace fs
|
|
#endif
|