types for constants (optional)
[libfirm] / ir / adt / array.c
index 1c4ab0a..b73eac2 100644 (file)
@@ -15,7 +15,9 @@
 #endif
 
 #include <stdlib.h>
+
 #include "array.h"
+#include "xmalloc.h"
 
 /* Undefine the macros to get the functions instead, cf tmalloc.c.  */
 #undef xmalloc
 #undef xstrdup
 #undef xfree
 
+#ifndef MAX
+# define MAX(a,b) ((a) > (b) ? (a) : (b))
+#endif
+#ifndef MIN
+# define MIN(a,b) ((a) > (b) ? (b) : (a))
+#endif
 
 _arr_descr arr_mt_descr
 #ifndef NDEBUG