From 94d3be12ec9c40f4c87022041b94c40263b49a93 Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Tue, 3 Mar 2026 00:12:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20MIN/MAX=20=E5=AE=8F?= =?UTF-8?q?=E5=AE=88=E5=8D=AB=E5=AF=BC=E8=87=B4=E7=9A=84=E5=AE=8F=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E4=B8=8D=E7=94=9F=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils.h b/src/utils.h index 270eeca..60ded39 100644 --- a/src/utils.h +++ b/src/utils.h @@ -90,10 +90,14 @@ static inline void logger(const char *format, ...) { #ifdef MIN #undef MIN +#endif +#ifndef MIN #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #endif #ifdef MAX #undef MAX +#endif +#ifndef MAX #define MAX(a, b) (((a) > (b)) ? (a) : (b)) #endif