mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 12:55:43 +08:00
apps: Use MIN/MAX definitions from "sys/param.h"
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:

committed by
Petro Karashchenko

parent
e949e207e0
commit
b0da60e498
@@ -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
|
||||
****************************************************************************/
|
||||
|
Reference in New Issue
Block a user