Enabled wchar_t/std::wstring interface in case of atomatic std::fs/ghc::fs selecting headers for better compatibility.

This commit is contained in:
Steffen Schümann 2019-05-31 00:49:39 +02:00
parent f4a85d2070
commit 8522069326
3 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,7 @@ using ofstream = std::ofstream;
using fstream = std::fstream;
}
#else
#define GHC_WIN_WSTRING_STRING_TYPE
#include <ghc/filesystem.hpp>
namespace fs {
using namespace ghc::filesystem;

View File

@ -50,6 +50,7 @@ using ofstream = std::ofstream;
using fstream = std::fstream;
}
#else
#define GHC_WIN_WSTRING_STRING_TYPE
#define GHC_FILESYSTEM_FWD
#include <ghc/filesystem.hpp>
namespace fs {

View File

@ -40,6 +40,7 @@
// header to work.
//---------------------------------------------------------------------------------------
#if !(defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include) && __has_include(<filesystem>))
#define GHC_WIN_WSTRING_STRING_TYPE
#define GHC_FILESYSTEM_IMPLEMENTATION
#include <ghc/filesystem.hpp>
#endif