blob: f2169c43c960209d2a79e4da2ef76e768690d0c4 [file] [log] [blame]
Patrick Williamsb9af8752023-01-30 13:28:01 -06001From 5e3243b163aa5d50083b4036c21f84c1204f2023 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 26 Jan 2023 23:25:05 -0800
4Subject: [PATCH] include missing <cstdint>
5
6gcc 13 moved some includes around and as a result <cstdint> is no longer transitively included [1]. Explicitly include it for uint{32,64}_t.
7
8[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
9
10Upstream-Status: Submitted [https://github.com/NilsBrause/waylandpp/pull/75]
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 include/wayland-client.hpp | 1 +
14 scanner/scanner.cpp | 3 +++
15 2 files changed, 4 insertions(+)
16
17diff --git a/include/wayland-client.hpp b/include/wayland-client.hpp
18index a3f782b..4598a0e 100644
19--- a/include/wayland-client.hpp
20+++ b/include/wayland-client.hpp
21@@ -29,6 +29,7 @@
22 /** \file */
23
24 #include <atomic>
25+#include <cstdint>
26 #include <functional>
27 #include <memory>
28 #include <string>
29diff --git a/scanner/scanner.cpp b/scanner/scanner.cpp
30index bebd71e..c25746a 100644
31--- a/scanner/scanner.cpp
32+++ b/scanner/scanner.cpp
33@@ -15,6 +15,7 @@
34 * along with this program. If not, see <http://www.gnu.org/licenses/>.
35 */
36
37+#include <cstdint>
38 #include <fstream>
39 #include <iostream>
40 #include <list>
41@@ -1106,6 +1107,7 @@ int main(int argc, char *argv[])
42 wayland_hpp << "#pragma once" << std::endl
43 << std::endl
44 << "#include <array>" << std::endl
45+ << "#include <cstdint>" << std::endl
46 << "#include <functional>" << std::endl
47 << "#include <memory>" << std::endl
48 << "#include <string>" << std::endl
49@@ -1125,6 +1127,7 @@ int main(int argc, char *argv[])
50 wayland_server_hpp << "#pragma once" << std::endl
51 << std::endl
52 << "#include <array>" << std::endl
53+ << "#include <cstdint>" << std::endl
54 << "#include <functional>" << std::endl
55 << "#include <memory>" << std::endl
56 << "#include <string>" << std::endl
57--
582.39.1
59