diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-01-24 22:51:27 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-01-24 22:51:27 -0500 |
commit | 6a193804a87a69856c3b5705b24a19a6ba4b6e16 (patch) | |
tree | 81096c87685d7dc5674ab9efc731b9cbf566c87e /include/sys | |
parent | 477e72ac4a263c163ddfd25b6e2371de0dd97e10 (diff) | |
download | musl-6a193804a87a69856c3b5705b24a19a6ba4b6e16.tar.gz musl-6a193804a87a69856c3b5705b24a19a6ba4b6e16.tar.xz musl-6a193804a87a69856c3b5705b24a19a6ba4b6e16.zip |
add MIN/MAX macros to sys/param.h
this is a nonstandard junk header anyway, so just do what apps expect..
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/param.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <sys/resource.h> #include <endian.h> #include <limits.h> |