From 416c60a1d471be6aac840b8a14895c9393784803 Mon Sep 17 00:00:00 2001 From: Steffen Schuemann Date: Sat, 24 Oct 2020 12:16:50 +0200 Subject: [PATCH] refs #78, added test of __MAC_OS_X_VERSION_MIN_REQUIRED --- include/ghc/fs_std.hpp | 2 +- include/ghc/fs_std_fwd.hpp | 2 +- include/ghc/fs_std_impl.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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