diff --git a/backends/imgui_impl_vulkan.h b/backends/imgui_impl_vulkan.h index 94d0bf27f..94c5b1d30 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!]