mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
util: define MAX
If util.h is going to have a MIN, it may as well also have MAX.
This commit is contained in:
parent
7b5fc59733
commit
6fe5fde292
@ -35,6 +35,9 @@
|
||||
# ifndef MIN
|
||||
# define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||
# endif
|
||||
# ifndef MAX
|
||||
# define MAX(a, b) ((a) > (b) ? (a) : (b))
|
||||
# endif
|
||||
|
||||
ssize_t saferead(int fd, void *buf, size_t count) ATTRIBUTE_RETURN_CHECK;
|
||||
ssize_t safewrite(int fd, const void *buf, size_t count)
|
||||
|
Loading…
x
Reference in New Issue
Block a user