mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
dev-games/godot: backport gcc13 build fix
Well, backport from the thirdparty's upstream, godot itself still needs to update. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
https://bugs.gentoo.org/895706
|
||||
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/commit/29d492b60c8
|
||||
From: Adam Sawicki <adam.sawicki@amd.com>
|
||||
Date: Thu, 19 Jan 2023 13:19:55 +0100
|
||||
Subject: [PATCH] Added missing #include <cstdio>
|
||||
|
||||
For snprintf, for compatibility with GCC 13.
|
||||
Fixes #312 - thanks @marxin !
|
||||
--- a/thirdparty/vulkan/vk_mem_alloc.h
|
||||
+++ b/thirdparty/vulkan/vk_mem_alloc.h
|
||||
@@ -2614,6 +2614,10 @@ VMA_CALL_PRE void VMA_CALL_POST vmaFreeStatsString(
|
||||
#include <bit> // For std::popcount
|
||||
#endif
|
||||
|
||||
+#if VMA_STATS_STRING_ENABLED
|
||||
+ #include <cstdio> // For snprintf
|
||||
+#endif
|
||||
+
|
||||
/*******************************************************************************
|
||||
CONFIGURATION SECTION
|
||||
|
||||
@@ -65,6 +65,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.0_beta3-headless-header.patch
|
||||
"${FILESDIR}"/${PN}-4.0_beta8-scons.patch
|
||||
"${FILESDIR}"/${PN}-4.0_rc2-musl.patch
|
||||
"${FILESDIR}"/${PN}-4.0_rc2-gcc13.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
Reference in New Issue
Block a user