From 7aa38946a9c630a82d7906731b9cf315d2437d7c Mon Sep 17 00:00:00 2001 From: Steffen Schuemann Date: Sat, 1 Jun 2019 21:11:31 +0200 Subject: [PATCH] refs #17, defaulting to value_type = wchar_t and string_type = std::wstring on Windows when using fs_std*.hpp helper header --- include/ghc/fs_std.hpp | 1 + include/ghc/fs_std_fwd.hpp | 1 + include/ghc/fs_std_impl.hpp | 1 + 3 files changed, 3 insertions(+) diff --git a/include/ghc/fs_std.hpp b/include/ghc/fs_std.hpp index 5dc3a8e..63231c5 100644 --- a/include/ghc/fs_std.hpp +++ b/include/ghc/fs_std.hpp @@ -51,6 +51,7 @@ using fstream = std::fstream; #endif #endif #ifndef GHC_USE_STD_FS +#define GHC_WIN_WSTRING_STRING_TYPE #include namespace fs { using namespace ghc::filesystem; diff --git a/include/ghc/fs_std_fwd.hpp b/include/ghc/fs_std_fwd.hpp index f336a12..6d2ebfb 100644 --- a/include/ghc/fs_std_fwd.hpp +++ b/include/ghc/fs_std_fwd.hpp @@ -54,6 +54,7 @@ using fstream = std::fstream; #endif #endif #ifndef GHC_USE_STD_FS +#define GHC_WIN_WSTRING_STRING_TYPE #define GHC_FILESYSTEM_FWD #include namespace fs { diff --git a/include/ghc/fs_std_impl.hpp b/include/ghc/fs_std_impl.hpp index a094993..005ec58 100644 --- a/include/ghc/fs_std_impl.hpp +++ b/include/ghc/fs_std_impl.hpp @@ -45,6 +45,7 @@ #endif #endif #ifndef GHC_USE_STD_FS +#define GHC_WIN_WSTRING_STRING_TYPE #define GHC_FILESYSTEM_IMPLEMENTATION #include #endif