Move MIN() and MAX() macros to sys/params.h
This commit is contained in:
@@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user