mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
259114b51d
certain files needed to include either fstream and our shim for std::filesystem. this includes fstream into our shim and includes this shim in places that require fstream. this is done because some toolchains (cough cough broke af arch linux amalgums) can have weird subsets of the requirements of C++17 that overlap, except when they dont, denoted by unknowable undisclosed circumstances. this issue was reported by a user in the wild, and this fixes it.
16 lines
324 B
C++
16 lines
324 B
C++
#pragma once
|
|
#include <fstream>
|
|
#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
|