Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
13873807
Commit
13873807
authored
Jul 08, 2022
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libfmt 9 support
libfmt version 9 broke the API by removing fmt::make_args_checked(). Fixes
https://bugs.debian.org/1014543
parent
2ee57f9b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
NEWS
NEWS
+1
-0
Log.hxx
src/Log.hxx
+4
-1
Response.hxx
src/client/Response.hxx
+8
-2
No files found.
NEWS
View file @
13873807
...
...
@@ -3,6 +3,7 @@ ver 0.23.8 (not yet released)
- curl: fix crash if web server does not understand WebDAV
* output
- pipewire: fix crash with PipeWire 0.3.53
* support libfmt 9
ver 0.23.7 (2022/05/09)
* database
...
...
src/Log.hxx
View file @
13873807
...
...
@@ -45,7 +45,10 @@ void
LogFmt
(
LogLevel
level
,
const
Domain
&
domain
,
const
S
&
format_str
,
Args
&&
...
args
)
noexcept
{
#if FMT_VERSION >= 70000
#if FMT_VERSION >= 90000
return
LogVFmt
(
level
,
domain
,
format_str
,
fmt
::
make_format_args
(
args
...));
#elif FMT_VERSION >= 70000
return
LogVFmt
(
level
,
domain
,
fmt
::
to_string_view
(
format_str
),
fmt
::
make_args_checked
<
Args
...
>
(
format_str
,
args
...));
...
...
src/client/Response.hxx
View file @
13873807
...
...
@@ -82,7 +82,10 @@ public:
template
<
typename
S
,
typename
...
Args
>
bool
Fmt
(
const
S
&
format_str
,
Args
&&
...
args
)
noexcept
{
#if FMT_VERSION >= 70000
#if FMT_VERSION >= 90000
return
VFmt
(
format_str
,
fmt
::
make_format_args
(
args
...));
#elif FMT_VERSION >= 70000
return
VFmt
(
fmt
::
to_string_view
(
format_str
),
fmt
::
make_args_checked
<
Args
...
>
(
format_str
,
args
...));
...
...
@@ -109,7 +112,10 @@ public:
template
<
typename
S
,
typename
...
Args
>
void
FmtError
(
enum
ack
code
,
const
S
&
format_str
,
Args
&&
...
args
)
noexcept
{
#if FMT_VERSION >= 70000
#if FMT_VERSION >= 90000
return
VFmtError
(
code
,
format_str
,
fmt
::
make_format_args
(
args
...));
#elif FMT_VERSION >= 70000
return
VFmtError
(
code
,
fmt
::
to_string_view
(
format_str
),
fmt
::
make_args_checked
<
Args
...
>
(
format_str
,
args
...));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment