Skip to content

Commit

Permalink
Explicitly include headers for PCH free build (#312)
Browse files Browse the repository at this point in the history
There are some headers that implicitly included by PCH. Include those
explicitly so PCH free build succeeds.
  • Loading branch information
pastalian authored Jun 15, 2024
1 parent e6b4871 commit bc7c5f9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/components/channellist/classic/guildlist.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <gtkmm/overlay.h>

#include "guildlist.hpp"

#include "abaddon.hpp"
Expand Down
2 changes: 2 additions & 0 deletions src/components/channellist/classic/mentionoverlay.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <set>

#include <gtkmm/drawingarea.h>
#include <pangomm/fontdescription.h>

Expand Down
2 changes: 0 additions & 2 deletions src/misc/cairo.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include "cairo.hpp"

#include <cairomm/context.h>

constexpr static double M_PI_H = M_PI / 2.0;
constexpr static double M_PI_3_2 = M_PI * 3.0 / 2.0;

Expand Down
2 changes: 2 additions & 0 deletions src/misc/cairo.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <cairomm/context.h>

namespace CairoUtil {
void PathRoundedRect(const Cairo::RefPtr<Cairo::Context> &cr, double x, double y, double w, double h, double r);
} // namespace CairoUtil
3 changes: 3 additions & 0 deletions src/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#ifdef __APPLE__
#include <unistd.h>
#endif
#ifdef __linux__
#include "util.hpp"
#endif

#include <spdlog/spdlog.h>

Expand Down

0 comments on commit bc7c5f9

Please sign in to comment.