Skip to content

Commit

Permalink
Reduce conditional compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
dimztimz authored and vitaut committed Aug 9, 2022
1 parent d9c1c73 commit 8bd02e9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions include/fmt/ostream.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,9 @@ struct fallback_formatter<T, Char, enable_if_t<is_streamable<T, Char>::value>>

inline void vprint_directly(std::ostream& os, string_view format_str,
format_args args) {
#ifdef _WIN32
auto buffer = memory_buffer();
detail::vformat_to(buffer, format_str, args);
detail::write_buffer(os, buffer);
#else
ignore_unused(os, format_str, args);
#endif
}

} // namespace detail
Expand Down

0 comments on commit 8bd02e9

Please sign in to comment.