diff --git a/include/util/json.hpp b/include/util/json.hpp index cc514e13..7cd43552 100644 --- a/include/util/json.hpp +++ b/include/util/json.hpp @@ -1,7 +1,15 @@ #pragma once +#include #include +#if (FMT_VERSION >= 90000) + +template <> +struct fmt::formatter : ostream_formatter {}; + +#endif + namespace waybar::util { struct JsonParser { diff --git a/src/client.cpp b/src/client.cpp index be2ec917..a815e2fe 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1,12 +1,12 @@ #include "client.hpp" -#include #include #include #include "idle-inhibit-unstable-v1-client-protocol.h" #include "util/clara.hpp" +#include "util/format.hpp" #include "wlr-layer-shell-unstable-v1-client-protocol.h" waybar::Client *waybar::Client::inst() { diff --git a/src/config.cpp b/src/config.cpp index 5894cb6b..dec3b50b 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -1,6 +1,5 @@ #include "config.hpp" -#include #include #include #include diff --git a/src/modules/sni/host.cpp b/src/modules/sni/host.cpp index 560d7368..007862dc 100644 --- a/src/modules/sni/host.cpp +++ b/src/modules/sni/host.cpp @@ -1,6 +1,5 @@ #include "modules/sni/host.hpp" -#include #include namespace waybar::modules::SNI { diff --git a/src/modules/sway/bar.cpp b/src/modules/sway/bar.cpp index 26234e3b..f28b0502 100644 --- a/src/modules/sway/bar.cpp +++ b/src/modules/sway/bar.cpp @@ -1,6 +1,5 @@ #include "modules/sway/bar.hpp" -#include #include #include