瀏覽代碼

Merge pull request #4033 from Guozhanxin/rtt_master

[fix] When enable audio and usb at the same time. The warning <"MIN" …
Bernard Xiong 4 年之前
父節點
當前提交
e1e585a95a
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      components/drivers/audio/audio.c

+ 2 - 0
components/drivers/audio/audio.c

@@ -19,7 +19,9 @@
 #define DBG_LVL              DBG_INFO
 #define DBG_LVL              DBG_INFO
 #include <rtdbg.h>
 #include <rtdbg.h>
 
 
+#ifndef MIN
 #define MIN(a, b)         ((a) < (b) ? (a) : (b))
 #define MIN(a, b)         ((a) < (b) ? (a) : (b))
+#endif
 
 
 enum
 enum
 {
 {