This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 856416540cd1b503101bae9210eb424af4073a9a
Author: Xiang Xiao <xiaoxi...@xiaomi.com>
AuthorDate: Wed Aug 16 01:18:05 2023 +0800

    Remove the definition of MIN/MAX
    
    use the macro in sys/params.h
    
    Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com>
---
 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 <sys/params.h>
+
 #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 <sys/types.h>
 #include <sys/ioctl.h>
 #include <sys/time.h>
+#include <sys/params.h>
 
 #include <stdarg.h>
 #include <stddef.h>
@@ -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                                                                  \
     {                                                                 \

Reply via email to