From d334ff8e942aa24e103d0371debca68bb31d1531 Mon Sep 17 00:00:00 2001 From: sadguitarius Date: Thu, 19 Sep 2024 02:08:35 -0700 Subject: [PATCH] fix compilation with fmt v11 --- include/rtpmidid/poller.hpp | 1 + include/rtpmidid/rtpclient.hpp | 4 ++-- include/rtpmidid/signal.hpp | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/rtpmidid/poller.hpp b/include/rtpmidid/poller.hpp index 2054f7b..6f80403 100644 --- a/include/rtpmidid/poller.hpp +++ b/include/rtpmidid/poller.hpp @@ -23,6 +23,7 @@ #include #include #include +#include // #define DEBUG0 DEBUG #define DEBUG0(...) diff --git a/include/rtpmidid/rtpclient.hpp b/include/rtpmidid/rtpclient.hpp index 18fe96d..0ba4f09 100644 --- a/include/rtpmidid/rtpclient.hpp +++ b/include/rtpmidid/rtpclient.hpp @@ -143,7 +143,7 @@ struct fmt::formatter> template <> struct fmt::formatter : formatter { - auto format(const rtpmidid::rtpclient_t::state_e &data, format_context &ctx) { + auto format(rtpmidid::rtpclient_t::state_e &data, format_context &ctx) const { const char *ret = rtpmidid::rtpclient_t::to_string(data); return formatter::format(ret, ctx); } @@ -153,7 +153,7 @@ struct fmt::formatter template <> struct fmt::formatter : formatter { - auto format(const rtpmidid::rtpclient_t::event_e &data, format_context &ctx) { + auto format(rtpmidid::rtpclient_t::event_e &data, format_context &ctx) const { const char *ret = rtpmidid::rtpclient_t::to_string(data); return formatter::format(ret, ctx); } diff --git a/include/rtpmidid/signal.hpp b/include/rtpmidid/signal.hpp index 79c8b6b..fedc66c 100644 --- a/include/rtpmidid/signal.hpp +++ b/include/rtpmidid/signal.hpp @@ -25,6 +25,7 @@ #include #include #include +#include // #define DEBUG0 DEBUG #define DEBUG0(...)