Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame^] | 1 | From 74cf53d89529902ecdef5b230421bc4d30fd089b Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 25 Jan 2023 15:36:14 -0800 |
| 4 | Subject: [PATCH] include missing <cstdint> |
| 5 | |
| 6 | gcc-13 exposed errors like below due to it removing indirect includes of |
| 7 | these headers in libstdc++ [1] |
| 8 | |
| 9 | ../git/external/amber/src/include/amber/shader_info.h:60:15: error: 'uint32_t' was not declared in this scope |
| 10 | 60 | std::vector<uint32_t> shader_data; |
| 11 | | ^~~~~~~~ |
| 12 | |
| 13 | [1] https://www.gnu.org/software/gcc/gcc-13/porting_to.html |
| 14 | |
| 15 | Upstream-Status: Submitted [https://github.com/google/amber/pull/1016] |
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 17 | --- |
| 18 | include/amber/recipe.h | 1 + |
| 19 | include/amber/shader_info.h | 1 + |
| 20 | src/descriptor_set_and_binding_parser.h | 1 + |
| 21 | 3 files changed, 3 insertions(+) |
| 22 | |
| 23 | diff --git a/include/amber/recipe.h b/include/amber/recipe.h |
| 24 | index 310a86a..1b83213 100644 |
| 25 | --- a/include/amber/recipe.h |
| 26 | +++ b/include/amber/recipe.h |
| 27 | @@ -15,6 +15,7 @@ |
| 28 | #ifndef AMBER_RECIPE_H_ |
| 29 | #define AMBER_RECIPE_H_ |
| 30 | |
| 31 | +#include <cstdint> |
| 32 | #include <string> |
| 33 | #include <utility> |
| 34 | #include <vector> |
| 35 | diff --git a/include/amber/shader_info.h b/include/amber/shader_info.h |
| 36 | index 6c9126a..b5ce751 100644 |
| 37 | --- a/include/amber/shader_info.h |
| 38 | +++ b/include/amber/shader_info.h |
| 39 | @@ -15,6 +15,7 @@ |
| 40 | #ifndef AMBER_SHADER_INFO_H_ |
| 41 | #define AMBER_SHADER_INFO_H_ |
| 42 | |
| 43 | +#include <cstdint> |
| 44 | #include <string> |
| 45 | #include <vector> |
| 46 | |
| 47 | diff --git a/src/descriptor_set_and_binding_parser.h b/src/descriptor_set_and_binding_parser.h |
| 48 | index 145aa42..4b0d774 100644 |
| 49 | --- a/src/descriptor_set_and_binding_parser.h |
| 50 | +++ b/src/descriptor_set_and_binding_parser.h |
| 51 | @@ -15,6 +15,7 @@ |
| 52 | #ifndef SRC_DESCRIPTOR_SET_AND_BINDING_PARSER_H_ |
| 53 | #define SRC_DESCRIPTOR_SET_AND_BINDING_PARSER_H_ |
| 54 | |
| 55 | +#include <cstdint> |
| 56 | #include <string> |
| 57 | |
| 58 | #include "amber/result.h" |
| 59 | -- |
| 60 | 2.39.1 |
| 61 | |