summaryrefslogtreecommitdiff
path: root/app-text/dvisvgm/files/dvisvgm-3.4-gcc15-cstdint.patch
blob: ce3d7f472cbf6ddf0c055b9229c15e62322fd49a (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
https://github.com/mgieseki/dvisvgm/pull/273

From 094a630bc8f49e233b2b21f34b6fdb3312d6ba2a Mon Sep 17 00:00:00 2001
Message-ID: <094a630bc8f49e233b2b21f34b6fdb3312d6ba2a.1723683010.git.sam@gentoo.org>
From: Sam James <sam@gentoo.org>
Date: Thu, 15 Aug 2024 01:34:04 +0100
Subject: [PATCH] Add missing `<cstdint>` includes

`uint8_t`, `uint32_t` are used without including `<cstdint>`
which fails to build w/ GCC 15 after a change in libstdc++ [0]

[0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3a817a4a5a6d94da9127af3be9f84a74e3076ee2

Signed-off-by: Sam James <sam@gentoo.org>
---
 src/Character.hpp    | 1 +
 src/HashFunction.hpp | 1 +
 src/utility.hpp      | 1 +
 3 files changed, 3 insertions(+)

diff --git a/src/Character.hpp b/src/Character.hpp
index 0569205a..2b71c163 100644
--- a/src/Character.hpp
+++ b/src/Character.hpp
@@ -21,6 +21,7 @@
 #ifndef CHARACTER_HPP
 #define CHARACTER_HPP
 
+#include <cstdint>
 
 class Character {
 	public:
diff --git a/src/HashFunction.hpp b/src/HashFunction.hpp
index 703a0bc0..7f5da89d 100644
--- a/src/HashFunction.hpp
+++ b/src/HashFunction.hpp
@@ -21,6 +21,7 @@
 #ifndef HASHFUNCTION_HPP
 #define HASHFUNCTION_HPP
 
+#include <cstdint>
 #include <istream>
 #include <memory>
 #include <string>
diff --git a/src/utility.hpp b/src/utility.hpp
index bff301c4..75719480 100644
--- a/src/utility.hpp
+++ b/src/utility.hpp
@@ -25,6 +25,7 @@
 #include <config.h>
 #endif
 
+#include <cstdint>
 #include <iomanip>
 #include <functional>
 #include <memory>
-- 
2.45.2