From 1d85613f56d6d30c989ae5eeca3b6cb7f2bd86a6 Mon Sep 17 00:00:00 2001 From: Nicolas Werner <nicolas.werner@hotmail.de> Date: Tue, 20 Apr 2021 01:48:35 +0200 Subject: [PATCH] Fix compilation with MOC5.6 --- include/mtx/events/voip.hpp | 6 +++++- include/mtx/responses/turn_server.hpp | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/mtx/events/voip.hpp b/include/mtx/events/voip.hpp index 8e1a2a6e7..ad76984b2 100644 --- a/include/mtx/events/voip.hpp +++ b/include/mtx/events/voip.hpp @@ -12,7 +12,9 @@ #include <string> #include <vector> -namespace mtx::events::msg { +namespace mtx { +namespace events { +namespace msg { //! Content for the `m.call.invite` event. struct CallInvite @@ -102,3 +104,5 @@ void to_json(nlohmann::json &obj, const CallHangUp &content); } // namespace mtx::events::msg +} +} diff --git a/include/mtx/responses/turn_server.hpp b/include/mtx/responses/turn_server.hpp index 5c4fa3d5e..a983a96c0 100644 --- a/include/mtx/responses/turn_server.hpp +++ b/include/mtx/responses/turn_server.hpp @@ -12,7 +12,8 @@ #include <nlohmann/json.hpp> #endif -namespace mtx::responses { +namespace mtx { +namespace responses { //! Response of the `GET /_matrix/client/r0/voip/turnServer` endpoint. // @@ -35,3 +36,4 @@ struct TurnServer void from_json(const nlohmann::json &obj, TurnServer &turnServer); } +} -- GitLab