From bc7c5f9ec3f1f19517a556a4c4f9e830ca191c32 Mon Sep 17 00:00:00 2001 From: pastalian <28638872+pastalian@users.noreply.github.com> Date: Sun, 16 Jun 2024 05:47:48 +0900 Subject: [PATCH] Explicitly include headers for PCH free build (#312) There are some headers that implicitly included by PCH. Include those explicitly so PCH free build succeeds. --- src/components/channellist/classic/guildlist.cpp | 2 ++ src/components/channellist/classic/mentionoverlay.hpp | 2 ++ src/misc/cairo.cpp | 2 -- src/misc/cairo.hpp | 2 ++ src/platform.cpp | 3 +++ 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/channellist/classic/guildlist.cpp b/src/components/channellist/classic/guildlist.cpp index fdc15f9..11a6775 100644 --- a/src/components/channellist/classic/guildlist.cpp +++ b/src/components/channellist/classic/guildlist.cpp @@ -1,3 +1,5 @@ +#include + #include "guildlist.hpp" #include "abaddon.hpp" diff --git a/src/components/channellist/classic/mentionoverlay.hpp b/src/components/channellist/classic/mentionoverlay.hpp index ceb4f01..7c168c2 100644 --- a/src/components/channellist/classic/mentionoverlay.hpp +++ b/src/components/channellist/classic/mentionoverlay.hpp @@ -1,5 +1,7 @@ #pragma once +#include + #include #include diff --git a/src/misc/cairo.cpp b/src/misc/cairo.cpp index 1272f75..a1c6220 100644 --- a/src/misc/cairo.cpp +++ b/src/misc/cairo.cpp @@ -1,7 +1,5 @@ #include "cairo.hpp" -#include - constexpr static double M_PI_H = M_PI / 2.0; constexpr static double M_PI_3_2 = M_PI * 3.0 / 2.0; diff --git a/src/misc/cairo.hpp b/src/misc/cairo.hpp index b66fa34..37c71d6 100644 --- a/src/misc/cairo.hpp +++ b/src/misc/cairo.hpp @@ -1,5 +1,7 @@ #pragma once +#include + namespace CairoUtil { void PathRoundedRect(const Cairo::RefPtr &cr, double x, double y, double w, double h, double r); } // namespace CairoUtil diff --git a/src/platform.cpp b/src/platform.cpp index ce0ac74..726655b 100644 --- a/src/platform.cpp +++ b/src/platform.cpp @@ -7,6 +7,9 @@ #ifdef __APPLE__ #include #endif +#ifdef __linux__ + #include "util.hpp" +#endif #include