blob: 78b5468e7b4fff7c1cb699b0fba985bf164ecb2e (
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
|
From 92ce461e77dad3451eb5791efe7413a989dc2c3c Mon Sep 17 00:00:00 2001
From: Denys Dmytriyenko <denys@konsulko.com>
Date: Wed, 7 Jun 2023 22:59:53 +0000
Subject: [PATCH] mapbox-gl: explicitly include cstdint header
Otherwise gcc13 report "undeclared" error for uint8_t and uint32_t
Upstream-Status: Pending
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
include/mbgl/util/geometry.hpp | 1 +
include/mbgl/util/string.hpp | 1 +
src/mbgl/gl/stencil_mode.hpp | 1 +
3 files changed, 3 insertions(+)
diff --git a/include/mbgl/util/geometry.hpp b/include/mbgl/util/geometry.hpp
index a28c59a47..92d928a37 100644
--- a/include/mbgl/util/geometry.hpp
+++ b/include/mbgl/util/geometry.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include <cstdint>
#include <mapbox/geometry/geometry.hpp>
#include <mapbox/geometry/point_arithmetic.hpp>
#include <mapbox/geometry/for_each_point.hpp>
diff --git a/include/mbgl/util/string.hpp b/include/mbgl/util/string.hpp
index 13498ccb9..726f7f6fc 100644
--- a/include/mbgl/util/string.hpp
+++ b/include/mbgl/util/string.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include <cstdint>
#include <sstream>
#include <string>
#include <cassert>
diff --git a/src/mbgl/gl/stencil_mode.hpp b/src/mbgl/gl/stencil_mode.hpp
index bc959c9a7..2fc62bba7 100644
--- a/src/mbgl/gl/stencil_mode.hpp
+++ b/src/mbgl/gl/stencil_mode.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include <cstdint>
#include <mbgl/util/variant.hpp>
namespace mbgl {
--
2.25.1
|