From 68e6a2185d574368b81f4c2642aba349167a0ceb Mon Sep 17 00:00:00 2001 From: Wunk Date: Thu, 23 Nov 2023 15:39:17 -0800 Subject: [PATCH] Fix missing `u32` and `LOG_TRACE` includes (#7207) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes a compile-error with gcc I was getting from `LOG_TRACE`(`error: ‘LOG_TRACE’ was not declared in this scope`) and `u32`(`error: ‘u32’ was not declared in this scope`) being used without their header-files being included. Not sure how `romfs_reader.cpp` is even compiling when nothing in its include-tree is refers to those macros. --- src/core/file_sys/romfs_reader.cpp | 1 + src/video_core/renderer_vulkan/vk_memory_util.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/core/file_sys/romfs_reader.cpp b/src/core/file_sys/romfs_reader.cpp index 6897266817..bc9bec9063 100644 --- a/src/core/file_sys/romfs_reader.cpp +++ b/src/core/file_sys/romfs_reader.cpp @@ -3,6 +3,7 @@ #include #include #include "common/archives.h" +#include "common/logging/log.h" #include "core/file_sys/romfs_reader.h" SERIALIZE_EXPORT_IMPL(FileSys::DirectRomFSReader) diff --git a/src/video_core/renderer_vulkan/vk_memory_util.h b/src/video_core/renderer_vulkan/vk_memory_util.h index 0eaea45dea..7db815069f 100644 --- a/src/video_core/renderer_vulkan/vk_memory_util.h +++ b/src/video_core/renderer_vulkan/vk_memory_util.h @@ -7,6 +7,7 @@ #include #include +#include "common/common_types.h" #include "video_core/renderer_vulkan/vk_common.h" namespace Vulkan {