fix: 修复 MIN/MAX 宏守卫导致的宏可能不生效问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user