lokinet/llarp/util/fs.hpp

16 lines
306 B
C++
Raw Normal View History

#pragma once
2019-07-29 21:40:58 +00:00
#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