Skip to content

Commit

Permalink
refs #78, added test of __MAC_OS_X_VERSION_MIN_REQUIRED
Browse files Browse the repository at this point in the history
  • Loading branch information
gulrak committed Oct 24, 2020
1 parent 1c72042 commit 416c60a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/ghc/fs_std.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
//---------------------------------------------------------------------------------------
#ifndef GHC_FILESYSTEM_STD_H
#if defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include)
#if __has_include(<filesystem>)
#if __has_include(<filesystem>) && (!defined(__MAC_OS_X_VERSION_MIN_REQUIRED) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500)
#define GHC_USE_STD_FS
#include <filesystem>
namespace fs {
Expand Down
2 changes: 1 addition & 1 deletion include/ghc/fs_std_fwd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(<filesystem>)
#if __has_include(<filesystem>) && (!defined(__MAC_OS_X_VERSION_MIN_REQUIRED) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500)
#define GHC_USE_STD_FS
#include <filesystem>
namespace fs {
Expand Down
2 changes: 1 addition & 1 deletion include/ghc/fs_std_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// header to work.
//---------------------------------------------------------------------------------------
#if defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include)
#if __has_include(<filesystem>)
#if __has_include(<filesystem>) && (!defined(__MAC_OS_X_VERSION_MIN_REQUIRED) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500)
#define GHC_USE_STD_FS
#endif
#endif
Expand Down

0 comments on commit 416c60a

Please sign in to comment.