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