From 47e164d2ad5f571a3fa61c326efa8e79928b0acb Mon Sep 17 00:00:00 2001 From: DH Date: Sat, 4 Oct 2025 18:52:13 +0300 Subject: [PATCH] Do not allow GLFW include unused headers --- rpcsx/gpu/Device.cpp | 4 +++- rpcsx/gpu/Device.hpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rpcsx/gpu/Device.cpp b/rpcsx/gpu/Device.cpp index ad188d6d4..c0f1cd2d5 100644 --- a/rpcsx/gpu/Device.cpp +++ b/rpcsx/gpu/Device.cpp @@ -18,7 +18,6 @@ #include "shader/spv.hpp" #include "shaders/rdna-semantic-spirv.hpp" #include "vk.hpp" -#include #include #include #include @@ -26,6 +25,9 @@ #include #include +#define GLFW_INCLUDE_NONE +#include + using namespace amdgpu; static VKAPI_ATTR VkBool32 VKAPI_CALL debugUtilsMessageCallback( diff --git a/rpcsx/gpu/Device.hpp b/rpcsx/gpu/Device.hpp index 4f3c65da2..bfcda25b3 100644 --- a/rpcsx/gpu/Device.hpp +++ b/rpcsx/gpu/Device.hpp @@ -11,11 +11,12 @@ #include "shader/SemanticInfo.hpp" #include "shader/SpvConverter.hpp" #include "shader/gcn.hpp" -#include #include #include #include +struct GLFWwindow; + namespace amdgpu { enum : std::uint8_t {