From 15908502ed6da3ca3a3b72d1a9d8f6097315db1c Mon Sep 17 00:00:00 2001 From: Frank McCoy Date: Mon, 22 Jan 2024 01:03:46 -0800 Subject: [PATCH] Backends: Vulkan: Define NOMINMAX when VK_USE_PLATFORM_WIN32_KHR is defined. (#7250) --- backends/imgui_impl_vulkan.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backends/imgui_impl_vulkan.h b/backends/imgui_impl_vulkan.h index 94d0bf27..94c5b1d3 100644 --- a/backends/imgui_impl_vulkan.h +++ b/backends/imgui_impl_vulkan.h @@ -46,7 +46,12 @@ #if defined(IMGUI_IMPL_VULKAN_NO_PROTOTYPES) && !defined(VK_NO_PROTOTYPES) #define VK_NO_PROTOTYPES #endif +#if defined(VK_USE_PLATFORM_WIN32_KHR) && !defined(NOMINMAX) +#define NOMINMAX #include +#else +#include +#endif // Initialization data, for ImGui_ImplVulkan_Init() // [Please zero-clear before use!]