From bbc3d1539011d409669c1a46c3854c70c5266590 Mon Sep 17 00:00:00 2001 From: Monika0000 Date: Tue, 14 Jun 2022 04:13:30 +1000 Subject: [PATCH] fix re-defines --- src/VmaUsage.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/VmaUsage.h b/src/VmaUsage.h index b3b0eef..5bff938 100644 --- a/src/VmaUsage.h +++ b/src/VmaUsage.h @@ -25,8 +25,14 @@ #ifdef _WIN32 -#define NOMINMAX -#define WIN32_LEAN_AND_MEAN +#if !defined(NOMINMAX) + #define NOMINMAX +#endif + +#if !defined(WIN32_LEAN_AND_MEAN) + #define WIN32_LEAN_AND_MEAN +#endif + #include #if !defined(VK_USE_PLATFORM_WIN32_KHR) #define VK_USE_PLATFORM_WIN32_KHR