0
0
mirror of https://github.com/openwrt/packages.git synced 2025-10-12 15:55:23 +00:00
Files
packages/sound/mpd/patches/010-fmt.patch
Rosen Penev 4b0f742e2b mpd: update to 0.23.16
Add patch to fix compilation with fmt 11.1.

Remove upstreamed patch.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2025-01-06 19:09:39 -08:00

21 lines
785 B
Diff

--- a/src/client/Response.hxx
+++ b/src/client/Response.hxx
@@ -83,7 +83,7 @@ public:
template<typename S, typename... Args>
bool Fmt(const S &format_str, Args&&... args) noexcept {
#if FMT_VERSION >= 90000
- return VFmt(format_str,
+ return VFmt(fmt::format_string<Args...>(format_str),
fmt::make_format_args(args...));
#elif FMT_VERSION >= 70000
return VFmt(fmt::to_string_view(format_str),
@@ -113,7 +113,7 @@ public:
void FmtError(enum ack code,
const S &format_str, Args&&... args) noexcept {
#if FMT_VERSION >= 90000
- return VFmtError(code, format_str,
+ return VFmtError(code, fmt::format_string<Args...>(format_str),
fmt::make_format_args(args...));
#elif FMT_VERSION >= 70000
return VFmtError(code, fmt::to_string_view(format_str),