X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/8fd3bdc4ee9fe7d3036a36b70affe273008024e2..1709795fee167cc2d2d423df0161e7963376b910:/misc.h diff --git a/misc.h b/misc.h index a59317e0..e4e70b1f 100644 --- a/misc.h +++ b/misc.h @@ -54,10 +54,15 @@ void debug_memdump(void *buf, int len, int L); #define dmemdumpl(buf,len) #endif - #ifndef lenof #define lenof(x) ( (sizeof((x))) / (sizeof(*(x)))) #endif +#ifndef min +#define min(x,y) ( (x) < (y) ? (x) : (y) ) +#endif +#ifndef max +#define max(x,y) ( (x) < (y) ? (x) : (y) ) +#endif #endif