Skip to content

Commit 7aa3894

Browse files
committed
refs #17, defaulting to value_type = wchar_t and string_type = std::wstring on Windows when using fs_std*.hpp helper header
1 parent 3fcb3f5 commit 7aa3894

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

include/ghc/fs_std.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ using fstream = std::fstream;
5151
#endif
5252
#endif
5353
#ifndef GHC_USE_STD_FS
54+
#define GHC_WIN_WSTRING_STRING_TYPE
5455
#include <ghc/filesystem.hpp>
5556
namespace fs {
5657
using namespace ghc::filesystem;

include/ghc/fs_std_fwd.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ using fstream = std::fstream;
5454
#endif
5555
#endif
5656
#ifndef GHC_USE_STD_FS
57+
#define GHC_WIN_WSTRING_STRING_TYPE
5758
#define GHC_FILESYSTEM_FWD
5859
#include <ghc/filesystem.hpp>
5960
namespace fs {

include/ghc/fs_std_impl.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#endif
4646
#endif
4747
#ifndef GHC_USE_STD_FS
48+
#define GHC_WIN_WSTRING_STRING_TYPE
4849
#define GHC_FILESYSTEM_IMPLEMENTATION
4950
#include <ghc/filesystem.hpp>
5051
#endif

0 commit comments

Comments
 (0)