# 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>
 
