Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
properly protect our definitions of MIN/MAX (w/o using undef to please sonar)
[simgrid.git] / include / simgrid / simdag.h
index 766fe1e..48fbd18 100644 (file)
 #include <set>
 #endif
 
-#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
 
 SG_BEGIN_DECL()