lib/fmt/ToBuffer: include fmt/format.h on libfmt 7 to fix linker error

This commit is contained in:
Max Kellermann 2022-11-28 23:03:51 +01:00
parent 05dcac55f9
commit 7d8c076e06

View File

@ -32,6 +32,9 @@
#include "util/StringBuffer.hxx"
#include <fmt/core.h>
#if FMT_VERSION <= 80000
#include <fmt/format.h> // for the fmt::buffer::flush() implementation
#endif
template<std::size_t size>
[[nodiscard]] [[gnu::pure]]