From 3952fd780fb5647fde8221e6c74cab260eb3e285 Mon Sep 17 00:00:00 2001 From: guozhanxin Date: Wed, 18 Nov 2020 11:13:21 +0800 Subject: [PATCH] [fix] When enable audio and usb at the same time. The warning <"MIN" redefined> is shown. --- components/drivers/audio/audio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/drivers/audio/audio.c b/components/drivers/audio/audio.c index 4cec8a4a9c..846dad07cf 100644 --- a/components/drivers/audio/audio.c +++ b/components/drivers/audio/audio.c @@ -19,7 +19,9 @@ #define DBG_LVL DBG_INFO #include +#ifndef MIN #define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif enum {