diff --git a/include/ghc/fs_std.hpp b/include/ghc/fs_std.hpp index 783b1f1..bb5480c 100644 --- a/include/ghc/fs_std.hpp +++ b/include/ghc/fs_std.hpp @@ -31,7 +31,7 @@ //--------------------------------------------------------------------------------------- #ifndef GHC_FILESYSTEM_STD_H #if defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include) -#if __has_include() +#if __has_include() && (!defined(__MAC_OS_X_VERSION_MIN_REQUIRED) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) #define GHC_USE_STD_FS #include namespace fs { diff --git a/include/ghc/fs_std_fwd.hpp b/include/ghc/fs_std_fwd.hpp index a2c11df..68c3799 100644 --- a/include/ghc/fs_std_fwd.hpp +++ b/include/ghc/fs_std_fwd.hpp @@ -34,7 +34,7 @@ #ifndef GHC_FILESYSTEM_STD_FWD_H #define GHC_FILESYSTEM_STD_FWD_H #if defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include) -#if __has_include() +#if __has_include() && (!defined(__MAC_OS_X_VERSION_MIN_REQUIRED) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) #define GHC_USE_STD_FS #include namespace fs { diff --git a/include/ghc/fs_std_impl.hpp b/include/ghc/fs_std_impl.hpp index 298100d..dcff655 100644 --- a/include/ghc/fs_std_impl.hpp +++ b/include/ghc/fs_std_impl.hpp @@ -32,7 +32,7 @@ // header to work. //--------------------------------------------------------------------------------------- #if defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include) -#if __has_include() +#if __has_include() && (!defined(__MAC_OS_X_VERSION_MIN_REQUIRED) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) #define GHC_USE_STD_FS #endif #endif