mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-07-20 04:04:25 +08:00
Enabled wchar_t/std::wstring interface in case of atomatic std::fs/ghc::fs selecting headers for better compatibility.
This commit is contained in:
parent
f4a85d2070
commit
8522069326
@ -47,6 +47,7 @@ using ofstream = std::ofstream;
|
|||||||
using fstream = std::fstream;
|
using fstream = std::fstream;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
#define GHC_WIN_WSTRING_STRING_TYPE
|
||||||
#include <ghc/filesystem.hpp>
|
#include <ghc/filesystem.hpp>
|
||||||
namespace fs {
|
namespace fs {
|
||||||
using namespace ghc::filesystem;
|
using namespace ghc::filesystem;
|
||||||
|
@ -50,6 +50,7 @@ using ofstream = std::ofstream;
|
|||||||
using fstream = std::fstream;
|
using fstream = std::fstream;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
#define GHC_WIN_WSTRING_STRING_TYPE
|
||||||
#define GHC_FILESYSTEM_FWD
|
#define GHC_FILESYSTEM_FWD
|
||||||
#include <ghc/filesystem.hpp>
|
#include <ghc/filesystem.hpp>
|
||||||
namespace fs {
|
namespace fs {
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
// header to work.
|
// header to work.
|
||||||
//---------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------
|
||||||
#if !(defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include) && __has_include(<filesystem>))
|
#if !(defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include) && __has_include(<filesystem>))
|
||||||
|
#define GHC_WIN_WSTRING_STRING_TYPE
|
||||||
#define GHC_FILESYSTEM_IMPLEMENTATION
|
#define GHC_FILESYSTEM_IMPLEMENTATION
|
||||||
#include <ghc/filesystem.hpp>
|
#include <ghc/filesystem.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user