Do not allow GLFW include unused headers

This commit is contained in:
DH 2025-10-04 18:52:13 +03:00
parent a7152c7ad7
commit 47e164d2ad
2 changed files with 5 additions and 2 deletions

View file

@ -18,7 +18,6 @@
#include "shader/spv.hpp"
#include "shaders/rdna-semantic-spirv.hpp"
#include "vk.hpp"
#include <GLFW/glfw3.h>
#include <chrono>
#include <cstdio>
#include <fcntl.h>
@ -26,6 +25,9 @@
#include <sys/mman.h>
#include <thread>
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
using namespace amdgpu;
static VKAPI_ATTR VkBool32 VKAPI_CALL debugUtilsMessageCallback(

View file

@ -11,11 +11,12 @@
#include "shader/SemanticInfo.hpp"
#include "shader/SpvConverter.hpp"
#include "shader/gcn.hpp"
#include <GLFW/glfw3.h>
#include <array>
#include <thread>
#include <vulkan/vulkan_core.h>
struct GLFWwindow;
namespace amdgpu {
enum : std::uint8_t {