Skip to content

Commit

Permalink
Allow disabling <filesystem> by define FMT_CPP_LIB_FILESYSTEM=0
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Shchapov <[email protected]>
  • Loading branch information
phprus committed Dec 7, 2024
1 parent 9600fee commit acea5a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/fmt/std.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

// Check FMT_CPLUSPLUS to suppress a bogus warning in MSVC.
# if FMT_CPLUSPLUS >= 201703L
# if FMT_HAS_INCLUDE(<filesystem>) && \
(!defined(FMT_CPP_LIB_FILESYSTEM) || FMT_CPP_LIB_FILESYSTEM != 0)
# include <filesystem>
# endif
# if FMT_HAS_INCLUDE(<variant>)
# include <variant>
# endif
Expand Down Expand Up @@ -76,7 +80,6 @@
#endif

#if FMT_CPP_LIB_FILESYSTEM
# include <filesystem>
FMT_BEGIN_NAMESPACE

namespace detail {
Expand Down

0 comments on commit acea5a5

Please sign in to comment.