From 9303de77d9b17e91e953b5bbca7aff652dda9e32 Mon Sep 17 00:00:00 2001 From: Andre Vieira Date: Fri, 31 Jul 2015 10:29:08 +0100 Subject: [PATCH] Add MIN MAX macro to param header file. newlib/ChangeLog: 2015-07-28 Andre Vieira * libc/sys/arm/sys/param.h (MIN,MAX): Define. From 536ca7365d269f5e56679048e336d6969186d550 Mon Sep 17 00:00:00 2001 From: Andre Simoes Dias Vieira Date: Tue, 28 Jul 2015 14:19:08 +0100 Subject: [PATCH] Added min max macros --- newlib/libc/sys/arm/sys/param.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/newlib/libc/sys/arm/sys/param.h b/newlib/libc/sys/arm/sys/param.h index 55fe45d71..b358734a3 100644 --- a/newlib/libc/sys/arm/sys/param.h +++ b/newlib/libc/sys/arm/sys/param.h @@ -16,4 +16,7 @@ # define PATHSIZE (1024) #endif +#define MAX(a,b) ((a) > (b) ? (a) : (b)) +#define MIN(a,b) ((a) < (b) ? (a) : (b)) + #endif