X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/7983f47ed4d055fd67c42ea5d9a1ddb8801d3ad9..0ac15bdc20b75615898a22c61a6aacbdf929ce56:/misc.h diff --git a/misc.h b/misc.h index a59317e0..48054745 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