summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2023-09-23 12:31:37 +0000
committerGitHub <noreply@github.com>2023-09-23 13:31:37 +0100
commit8637bfb1b79d7778447d93349f14b86dea41d2a4 (patch)
tree9c6721dc3b224f043ec846f70c0a3b70fdac7a8d /src
parentde950895522540b4ff457fd5b1c7cc9bd3045d31 (diff)
build: Unbreak build without precompiled headers (#3400)
* helpers: add missing header after 2e34548aea5b src/helpers/VarList.cpp: In constructor 'CVarList::CVarList(const std::string&, size_t, char, bool)': src/helpers/VarList.cpp:19:34: error: 'removeBeginEndSpacesTabs' was not declared in this scope 19 | m_vArgs.emplace_back(removeBeginEndSpacesTabs(in.substr(pos))); | ^~~~~~~~~~~~~~~~~~~~~~~~ src/helpers/VarList.cpp:23:30: error: 'removeBeginEndSpacesTabs' was not declared in this scope 23 | m_vArgs.emplace_back(removeBeginEndSpacesTabs(std::string_view{s}.data())); | ^~~~~~~~~~~~~~~~~~~~~~~~ * helpers: add missing C linkage after 0dbd99700319 ld.lld: error: undefined symbol: wlr_region_scale(pixman_region32*, pixman_region32 const*, float) >>> referenced by Region.cpp >>> src/Hyprland.p/helpers_Region.cpp.o:(CRegion::scale(float)) >>> did you mean: extern "C" wlr_region_scale >>> defined in: /usr/lib/libwlroots.so.12032
Diffstat (limited to 'src')
-rw-r--r--src/helpers/Region.cpp2
-rw-r--r--src/helpers/VarList.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/helpers/Region.cpp b/src/helpers/Region.cpp
index e2db4664..5515e71e 100644
--- a/src/helpers/Region.cpp
+++ b/src/helpers/Region.cpp
@@ -1,6 +1,8 @@
#include "Region.hpp"
+extern "C" {
#include <wlr/util/box.h>
#include <wlr/util/region.h>
+}
CRegion::CRegion() {
pixman_region32_init(&m_rRegion);
diff --git a/src/helpers/VarList.cpp b/src/helpers/VarList.cpp
index c29a1e96..780ea9a0 100644
--- a/src/helpers/VarList.cpp
+++ b/src/helpers/VarList.cpp
@@ -1,3 +1,4 @@
+#include "MiscFunctions.hpp"
#include "VarList.hpp"
#include <ranges>
#include <algorithm>