From cf579d9067a0d6de3d83eaf5389592053b2e71eb Mon Sep 17 00:00:00 2001 From: Sergey Kosarevsky Date: Tue, 21 Nov 2023 05:09:50 -0800 Subject: [PATCH] Do not redefine NOMINMAX (#801) --- lib/gl_format.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/gl_format.h b/lib/gl_format.h index f86c1f8663..3986bc430c 100644 --- a/lib/gl_format.h +++ b/lib/gl_format.h @@ -92,7 +92,9 @@ MODIFICATIONS for use in libktx #include "vkformat_enum.h" #if defined(_WIN32) && !defined(__MINGW32__) +#if !defined(NOMINMAX) #define NOMINMAX +#endif // !defined(NOMINMAX) #ifndef __cplusplus #undef inline #define inline __inline