X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/59932f7dcdc2b0906e1f4119513c6c36e99ee8c6..cd1a5fe0ed22087c6afbe585ab0206c2a4a267aa:/src/src/macros.h diff --git a/src/src/macros.h b/src/src/macros.h index c62f16e7d..1b7cf4abf 100644 --- a/src/src/macros.h +++ b/src/src/macros.h @@ -15,6 +15,11 @@ a string as a text string. This is sometimes useful for debugging output. */ /* Number of elements of an array */ #define nelem(arr) (sizeof(arr) / sizeof(*arr)) +/* Maximum of two items */ +#ifndef MAX +# define MAX(a,b) ((a) > (b) ? (a) : (b)) +#endif + /* When running in the test harness, the load average is fudged. */