mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 21:45:58 +01:00
build: Unbreak build without precompiled headers (#3400)
* helpers: add missing header after2e34548aea
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 after0dbd997003
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
This commit is contained in:
parent
de95089552
commit
8637bfb1b7
2 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
#include "Region.hpp"
|
#include "Region.hpp"
|
||||||
|
extern "C" {
|
||||||
#include <wlr/util/box.h>
|
#include <wlr/util/box.h>
|
||||||
#include <wlr/util/region.h>
|
#include <wlr/util/region.h>
|
||||||
|
}
|
||||||
|
|
||||||
CRegion::CRegion() {
|
CRegion::CRegion() {
|
||||||
pixman_region32_init(&m_rRegion);
|
pixman_region32_init(&m_rRegion);
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "MiscFunctions.hpp"
|
||||||
#include "VarList.hpp"
|
#include "VarList.hpp"
|
||||||
#include <ranges>
|
#include <ranges>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
Loading…
Reference in a new issue