Move MIN() and MAX() macros to sys/params.h

This commit is contained in:
Arun Thomas
2010-08-21 13:10:41 +00:00
parent 60a71efca8
commit de231a713e
26 changed files with 23 additions and 32 deletions

View File

@@ -12,4 +12,8 @@ sys/param.h
#define NGROUPS 8 /* max number of supplementary groups */
#define MAXPATHLEN __MINIX_PATH_MAX
/* Macros for min/max. */
#define MIN(a,b) ((/*CONSTCOND*/(a)<(b))?(a):(b))
#define MAX(a,b) ((/*CONSTCOND*/(a)>(b))?(a):(b))
#endif /* __SYS_PARAM_H__ */