Skip to content

Commit

Permalink
Allow disabling <filesystem> by define FMT_CPP_LIB_FILESYSTEM=0 (#4259)
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
  • Loading branch information
phprus authored Dec 9, 2024
1 parent 4302d74 commit 1413801
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 1413801

Please sign in to comment.