Skip to content

Commit

Permalink
updated .cpp + added missing GHC_WIN_WSTRING_STRING_TYPE too
Browse files Browse the repository at this point in the history
  • Loading branch information
dimateos committed Nov 16, 2023
1 parent 61338ed commit 044d318
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/cinder/Filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@
POSSIBILITY OF SUCH DAMAGE.
*/

#if defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include)
#if (! defined(__APPLE__)) && __has_include(<filesystem>)
#ifndef __APPLE__
#if defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include) && __has_include(<filesystem>)
#define GHC_USE_STD_FS
#elif defined(_MSVC_LANG) && _MSVC_LANG >= 201703L && defined(__has_include) && __has_include(<filesystem>)
#define GHC_USE_STD_FS
#endif
#endif

#if ! defined( GHC_USE_STD_FS )
#ifndef GHC_USE_STD_FS
#undef GHC_FILESYSTEM_H
#define GHC_WIN_WSTRING_STRING_TYPE
#include <ghc/fs_impl.hpp>
#endif

0 comments on commit 044d318

Please sign in to comment.