X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Fmacros.h;h=1b7cf4abf64d822a01e65861f4f352384f194e3a;hb=ef8176594c130feebefad040420fbc4d637e9571;hp=c62f16e7d27251ced9ff8628a8f1bf6004af7e3d;hpb=59932f7dcdc2b0906e1f4119513c6c36e99ee8c6;p=exim.git 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. */