Files
poky/meta/recipes-graphics/vulkan/vulkan-samples/0001-parser.h-Including-missing-cstdint.patch
Khem Raj 71e301efc4 vulkan-samples: Include missing header cstdint for uint32_t
(From OE-Core rev: 47f6a75960b3af2be7f45fd06e2fb73549b6933b)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-01-24 22:06:51 +00:00

38 lines
1.1 KiB
Diff

From 590bd5f81207bb55bd02b4a37f73a1f64dac452d Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 23 Jan 2023 13:20:58 -0800
Subject: [PATCH] parser.h: Including missing <cstdint>
This is needed from gcc-13+ see [1]
Fixes
../git/framework/platform/parser.h:282:43: error: 'uint32_t' does not name a type
282 | *type = static_cast<uint32_t>(number);
| ^~~~~~~~
../git/framework/platform/parser.h:21:1: note: 'uint32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
[1] https://www.gnu.org/software/gcc/gcc-13/porting_to.html
Upstream-Status: Submitted [https://github.com/KhronosGroup/Vulkan-Samples/pull/602]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
framework/platform/parser.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/framework/platform/parser.h b/framework/platform/parser.h
index 215f3d80..a5bd1344 100644
--- a/framework/platform/parser.h
+++ b/framework/platform/parser.h
@@ -18,6 +18,7 @@
#pragma once
#include <cassert>
+#include <cstdint>
#include <string>
#include <typeindex>
#include <vector>
--
2.39.1