From 856416540cd1b503101bae9210eb424af4073a9a Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 16 Aug 2023 01:18:05 +0800 Subject: [PATCH] Remove the definition of MIN/MAX use the macro in sys/params.h Signed-off-by: Xiang Xiao --- lte/alt1250/alt1250_util.h | 6 ++---- testing/drivertest/drivertest_audio.c | 5 +---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/lte/alt1250/alt1250_util.h b/lte/alt1250/alt1250_util.h index 62108a1e3..edff6203f 100644 --- a/lte/alt1250/alt1250_util.h +++ b/lte/alt1250/alt1250_util.h @@ -25,16 +25,14 @@ * Included Files ****************************************************************************/ +#include + #include "alt1250_daemon.h" /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ -#ifndef MIN -# define MIN(a,b) (((a) < (b)) ? (a) : (b)) -#endif - /**************************************************************************** * Public Function Prototypes ****************************************************************************/ diff --git a/testing/drivertest/drivertest_audio.c b/testing/drivertest/drivertest_audio.c index 6040bf17e..9b7fe9d5e 100644 --- a/testing/drivertest/drivertest_audio.c +++ b/testing/drivertest/drivertest_audio.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -50,10 +51,6 @@ * Pre-processor Definitions ****************************************************************************/ -#ifndef MAX -# define MAX(a, b) (((a) > (b)) ? (a) : (b)) -#endif - #define OPTARG_TO_VALUE(value, type, base) \ do \ { \