* src/vm/global.h: Added definition of MIN macro with guard.
[cacao.git] / src / vm / global.h
index 33b7fb1e7ecd32cae73c00b1d1155bc902e12e16..420352c6a1c0636e16b8771cad188b4c634a38d4 100644 (file)
@@ -89,6 +89,12 @@ typedef union {
 
 #define STR(a)  #a
 
+/* There are multiple definitions of MIN out there, but we cannot be sure. */
+
+#ifndef MIN
+# define MIN(a,b)  (((a) < (b)) ? (a) : (b))
+#endif
+
 
 /* forward typedefs ***********************************************************/