From 85220693268f6f5a526ecb044aa2cc02fc991775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Sch=C3=BCmann?= Date: Fri, 31 May 2019 00:49:39 +0200 Subject: [PATCH] Enabled wchar_t/std::wstring interface in case of atomatic std::fs/ghc::fs selecting headers for better compatibility. --- 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 9b54a0d..22e93fe 100644 --- a/include/ghc/fs_std.hpp +++ b/include/ghc/fs_std.hpp @@ -47,6 +47,7 @@ using ofstream = std::ofstream; using fstream = std::fstream; } #else +#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 68dcb3e..40dee2a 100644 --- a/include/ghc/fs_std_fwd.hpp +++ b/include/ghc/fs_std_fwd.hpp @@ -50,6 +50,7 @@ using ofstream = std::ofstream; using fstream = std::fstream; } #else +#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 96f0f5c..4f6f1c0 100644 --- a/include/ghc/fs_std_impl.hpp +++ b/include/ghc/fs_std_impl.hpp @@ -40,6 +40,7 @@ // header to work. //--------------------------------------------------------------------------------------- #if !(defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include) && __has_include()) +#define GHC_WIN_WSTRING_STRING_TYPE #define GHC_FILESYSTEM_IMPLEMENTATION #include #endif