fix(bt): Fixed the issue of duplicate MAX macro definitions

This commit is contained in:
luoxu
2025-08-11 15:17:55 +08:00
committed by Luo Xu
parent f19c2a36f2
commit e71a79f679
+2
View File
@@ -141,7 +141,9 @@
#define LOG_LOCAL_LEVEL_MAPPING LOG_LOCAL_LEVEL
#endif
#ifndef MAX
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#endif
#define BT_LOG_LEVEL_CHECK(LAYER, LEVEL) (MAX(LAYER##_INITIAL_TRACE_LEVEL, LOG_LOCAL_LEVEL_MAPPING) >= BT_TRACE_LEVEL_##LEVEL)