Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix model-check builds on freebsd
[simgrid.git] / src / xbt / mmalloc / mmprivate.h
index 4854410..d545fcc 100644 (file)
 #include <pthread.h>
 #include <stdint.h>
 
+#ifdef MIN
+#undef MIN
+#endif
+#define MIN(a, b) ((a) < (b) ? (a) : (b))
+#ifdef MAX
+#undef MAX
+#endif
+#define MAX(a, b) ((a) > (b) ? (a) : (b))
+
 #ifdef HAVE_LIMITS_H
 #  include <limits.h>
 #else