Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove assert on hot path.
[simgrid.git] / include / simgrid / msg.h
index 9f7d0cd..abacb70 100644 (file)
 #include <simgrid/zone.h>
 #include <xbt.h>
 
-#ifdef MIN
-#undef MIN
-#endif
+#ifndef MIN
 #define MIN(a, b) ((a) < (b) ? (a) : (b))
-
-#ifdef MAX
-#undef MAX
 #endif
+#ifndef MAX
 #define MAX(a, b) ((a) > (b) ? (a) : (b))
+#endif
 
 #ifdef __cplusplus
 #include <map>