summaryrefslogtreecommitdiff
path: root/dev-libs/hyprgraphics/files/hyprgraphics-0.5.0-span-include.patch
blob: bc8fa019729f3aaa095c6bc369c8790dd5ab9efc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Patch from https://github.com/hyprwm/hyprgraphics/pull/40 
From f114ea3d978629279b0dfa94459a346b198aff29 Mon Sep 17 00:00:00 2001
From: Hiroki Tagato <tagattie@gmail.com>
Date: Mon, 5 Jan 2026 20:02:58 +0900
Subject: [PATCH] core: add missing #include <span> (#40)

Without it, build fails with the following error: error: no template
named 'span' in namespace 'std'
---
 include/hyprgraphics/resource/resources/ImageResource.hpp | 1 +
 src/image/formats/Svg.hpp                                 | 1 +
 2 files changed, 2 insertions(+)

diff --git a/include/hyprgraphics/resource/resources/ImageResource.hpp b/include/hyprgraphics/resource/resources/ImageResource.hpp
index 0162392..70998a2 100644
--- a/include/hyprgraphics/resource/resources/ImageResource.hpp
+++ b/include/hyprgraphics/resource/resources/ImageResource.hpp
@@ -1,6 +1,7 @@
 #pragma once
 
 #include <string>
+#include <span>
 #include <hyprutils/math/Vector2D.hpp>
 #include "./AsyncResource.hpp"
 #include "../../color/Color.hpp"
diff --git a/src/image/formats/Svg.hpp b/src/image/formats/Svg.hpp
index 1fec865..9a5908c 100644
--- a/src/image/formats/Svg.hpp
+++ b/src/image/formats/Svg.hpp
@@ -3,6 +3,7 @@
 #include <cairo/cairo.h>
 #include <string>
 #include <expected>
+#include <span>
 #include <png.h>
 #include <hyprutils/math/Vector2D.hpp>