1From 3c441910aa25f57df2a4db55f75f5d99cea86620 Mon Sep 17 00:00:00 2001
2From: Sergei Trofimovich <slyich@gmail.com>
3Date: Sun, 8 Jan 2023 18:24:53 +0000
4Subject: [PATCH] add missing <cstdint> include
5
6Upcoming `gcc-13` made `<string>` leaner and does not include `<cstdint>`
7implicitly anymore. As a result build fails without the change as:
8
9    [  2%] Building CXX object CMakeFiles/wayland-scanner++.dir/scanner/scanner.cpp.o
10    scanner/scanner.cpp:378:3: error: 'uint32_t' does not name a type
11      378 |   uint32_t width = 0;
12          |   ^~~~~~~~
13
14Upstream: https://github.com/NilsBrause/waylandpp/pull/71
15
16Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
17---
18 include/wayland-client.hpp | 1 +
19 scanner/scanner.cpp        | 3 +++
20 2 files changed, 4 insertions(+)
21
22diff --git a/include/wayland-client.hpp b/include/wayland-client.hpp
23index a3f782b..4598a0e 100644
24--- a/include/wayland-client.hpp
25+++ b/include/wayland-client.hpp
26@@ -29,6 +29,7 @@
27 /** \file */
28
29 #include <atomic>
30+#include <cstdint>
31 #include <functional>
32 #include <memory>
33 #include <string>
34diff --git a/scanner/scanner.cpp b/scanner/scanner.cpp
35index bebd71e..37cf7ff 100644
36--- a/scanner/scanner.cpp
37+++ b/scanner/scanner.cpp
38@@ -23,6 +23,7 @@
39 #include <vector>
40 #include <cctype>
41 #include <cmath>
42+#include <cstdint>
43 #include <stdexcept>
44
45 #include "pugixml.hpp"
46@@ -1106,6 +1107,7 @@ int main(int argc, char *argv[])
47   wayland_hpp << "#pragma once" << std::endl
48               << std::endl
49               << "#include <array>" << std::endl
50+              << "#include <cstdint>" << std::endl
51               << "#include <functional>" << std::endl
52               << "#include <memory>" << std::endl
53               << "#include <string>" << std::endl
54@@ -1125,6 +1127,7 @@ int main(int argc, char *argv[])
55     wayland_server_hpp << "#pragma once" << std::endl
56                        << std::endl
57                        << "#include <array>" << std::endl
58+                       << "#include <cstdint>" << std::endl
59                        << "#include <functional>" << std::endl
60                        << "#include <memory>" << std::endl
61                        << "#include <string>" << std::endl
62