include: Add MIN/MAX definition to sys/param.h

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2023-02-01 09:49:14 -03:00 committed by Xiang Xiao
parent a045eb3c1d
commit 079e2b8c7c

View File

@ -33,6 +33,16 @@
#define MAXHOSTNAMELEN HOST_NAME_MAX
/* Macros for min/max. */
#ifndef MIN
# define MIN(a,b) (((a) < (b)) ? (a) : (b))
#endif /* MIN */
#ifndef MAX
# define MAX(a,b) (((a) > (b)) ? (a) : (b))
#endif /* MAX */
/****************************************************************************
* Public Type Definitions
****************************************************************************/