diff --git a/include/fmt/std.h b/include/fmt/std.h index b6301805..3e38eef7 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -149,11 +149,9 @@ template struct formatter { template auto format(const std::filesystem::path& p, FormatContext& ctx) const { auto specs = specs_; -# ifdef _WIN32 - auto path_string = !path_type_ ? p.native() : p.generic_wstring(); -# else - auto path_string = !path_type_ ? p.native() : p.generic_string(); -# endif + auto path_string = + !path_type_ ? p.native() + : p.generic_string(); detail::handle_dynamic_spec(specs.width, width_ref_, ctx);