projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
477e72a
)
add MIN/MAX macros to sys/param.h
author
Rich Felker
<dalias@aerifal.cx>
Wed, 25 Jan 2012 03:51:27 +0000
(22:51 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 25 Jan 2012 03:51:27 +0000
(22:51 -0500)
this is a nonstandard junk header anyway, so just do what apps expect..
include/sys/param.h
patch
|
blob
|
history
diff --git
a/include/sys/param.h
b/include/sys/param.h
index 1ed5337e1e6a480c6f00e0a4ca6d6ab67337fb26..30499cc7f5552aa9acc66947554c85c1d64b8f80 100644
(file)
--- 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>