diff --git a/src/util/util.h b/src/util/util.h index e8197be0d94fbabd058ec709dd44f48f22f4af12..af8b15d8dbeead89352268569be537ae78bc2bc9 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -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)