apps: Use MIN/MAX definitions from "sys/param.h"

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei
2023-02-01 10:44:33 -03:00
committed by Petro Karashchenko
parent e949e207e0
commit b0da60e498
22 changed files with 23 additions and 145 deletions

View File

@@ -28,6 +28,7 @@
#include <nuttx/compiler.h>
#include <sys/param.h>
#include <sys/stat.h> /* Needed for open */
#include <stdint.h>
#include <stdbool.h>
@@ -116,12 +117,6 @@
# endif
#endif
/* Get the larger value */
#ifndef MAX
# define MAX(a,b) ((a) > (b) ? (a) : (b))
#endif
/****************************************************************************
* Private Types
****************************************************************************/