diff options
author | Max Kellermann <max@musicpd.org> | 2021-06-25 17:32:11 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2021-06-25 20:29:25 +0200 |
commit | f60a42e0b6326cd25f0c20eb21e03f4cc2d90bf0 (patch) | |
tree | a128f4d92c89d90a9705a2d73ce8f51b382e1e1c /src/client/Response.cxx | |
parent | 85b0029ba2000fb132c9008a610e08e8bf499ab5 (diff) |
Log, client/Response: adapt to libfmt 8.0.0 API changes
Diffstat (limited to 'src/client/Response.cxx')
-rw-r--r-- | src/client/Response.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/Response.cxx b/src/client/Response.cxx index aeede609d..cda9e4969 100644 --- a/src/client/Response.cxx +++ b/src/client/Response.cxx @@ -44,7 +44,11 @@ bool Response::VFmt(fmt::string_view format_str, fmt::format_args args) noexcept { fmt::memory_buffer buffer; +#if FMT_VERSION >= 80000 + fmt::vformat_to(std::back_inserter(buffer), format_str, args); +#else fmt::vformat_to(buffer, format_str, args); +#endif return Write(buffer.data(), buffer.size()); } |