diff options
| author | guozhanxin <[email protected]> | 2020-11-18 11:13:21 +0800 |
|---|---|---|
| committer | guozhanxin <[email protected]> | 2020-11-18 11:13:28 +0800 |
| commit | 3952fd780fb5647fde8221e6c74cab260eb3e285 (patch) | |
| tree | 15e00776e4ca6ba8aa489e0115eec38a9d0de6b9 /components/drivers | |
| parent | 2ef3c9d861f55253620996a94831a4be31ca6620 (diff) | |
[fix] When enable audio and usb at the same time. The warning <"MIN" redefined> is shown.
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/audio/audio.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <rtdbg.h> +#ifndef MIN #define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif enum { |
