Alejandro Colomar 3dc1754e50 Use libc MAX() and MIN()
glibc, musl, FreeBSD, and OpenBSD define the MAX() and MIN()
macros in <sys/param.h> with the same definition that we use.
Let's not redefine it here and use the system one, as it's
effectively the same as we define (modulo whitespace).

See:

shadow (previously):

alx@asus5775:~/src/shadow/shadow$ grepc -ktm MAX
./lib/defines.h:318:#define MAX(x,y) (((x) > (y)) ? (x) : (y))

glibc:

alx@asus5775:~/src/gnu/glibc$ grepc -ktm -x 'sys/param.h$' MAX
./misc/sys/param.h:103:#define MAX(a,b) (((a)>(b))?(a):(b))

musl:

alx@asus5775:~/src/musl/musl$ grepc -ktm -x 'sys/param.h$' MAX
./include/sys/param.h:19:#define MAX(a,b) (((a)>(b))?(a):(b))

OpenBSD:

alx@asus5775:~/src/bsd/openbsd/src$ grepc -ktm -x 'sys/param.h$' MAX
./sys/sys/param.h:193:#define	MAX(a,b) (((a)>(b))?(a):(b))

FreeBSD:

alx@asus5775:~/src/bsd/freebsd/freebsd-src$ grepc -ktm -x 'sys/param.h$' MAX
./sys/sys/param.h:333:#define	MAX(a,b) (((a)>(b))?(a):(b))

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2022-09-30 16:13:36 -05:00
..
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2022-08-06 11:27:56 -05:00
2022-09-02 20:27:14 -05:00
2021-12-23 19:36:50 -06:00
2022-08-17 12:34:01 -05:00
2021-12-23 19:36:50 -06:00
2022-08-06 11:27:56 -05:00
2021-12-23 19:36:50 -06:00
2022-08-06 11:27:56 -05:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2022-08-06 11:27:56 -05:00
2021-12-23 19:36:50 -06:00
2022-08-06 11:27:56 -05:00
2022-08-06 11:27:56 -05:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2022-08-06 11:27:56 -05:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2022-01-03 15:09:17 +01:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2022-08-17 12:34:01 -05:00
2021-12-23 19:36:50 -06:00
2022-08-06 11:27:56 -05:00
2021-12-23 19:36:50 -06:00
2022-08-06 11:27:56 -05:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2022-09-30 16:13:36 -05:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2022-03-18 20:24:10 -05:00
2021-12-23 19:36:50 -06:00