First phase of porting. pterm now compiles and runs under Linux+gtk.
[u/mdw/putty] / misc.h
diff --git a/misc.h b/misc.h
index a59317e..e4e70b1 100644 (file)
--- 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