From: Rich Felker Date: Wed, 25 Jan 2012 03:51:27 +0000 (-0500) Subject: add MIN/MAX macros to sys/param.h X-Git-Tag: v0.8.5~44 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6a193804a87a69856c3b5705b24a19a6ba4b6e16;p=oweals%2Fmusl.git add MIN/MAX macros to sys/param.h this is a nonstandard junk header anyway, so just do what apps expect.. --- diff --git a/include/sys/param.h b/include/sys/param.h index 1ed5337e..30499cc7 100644 --- a/include/sys/param.h +++ b/include/sys/param.h @@ -10,6 +10,11 @@ #undef MAXPATHLEN #define MAXPATHLEN 4096 +#undef MIN +#undef MAX +#define MIN(a,b) (((a)<(b))?(a):(b)) +#define MAX(a,b) (((a)>(b))?(a):(b)) + #include #include #include