Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Vieira <Andre.SimoesDiasVieira@arm.com>2015-07-31 12:29:08 +0300
committerCorinna Vinschen <corinna@vinschen.de>2015-08-20 11:52:34 +0300
commit9303de77d9b17e91e953b5bbca7aff652dda9e32 (patch)
tree149acd3869701330c259deb8a626ebec874e5375
parenta732159809a25cf21b41537e607fe17fa76ab400 (diff)
Add MIN MAX macro to param header file.
newlib/ChangeLog: 2015-07-28 Andre Vieira <andre.simoesdiasvieira@arm.com> * libc/sys/arm/sys/param.h (MIN,MAX): Define. From 536ca7365d269f5e56679048e336d6969186d550 Mon Sep 17 00:00:00 2001 From: Andre Simoes Dias Vieira <andsim01@arm.com> Date: Tue, 28 Jul 2015 14:19:08 +0100 Subject: [PATCH] Added min max macros
-rw-r--r--newlib/libc/sys/arm/sys/param.h3
1 files changed, 3 insertions, 0 deletions
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