A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
properly protect our definitions of MIN/MAX (w/o using undef to please sonar)
[simgrid.git]
/
include
/
simgrid
/
simdag.h
diff --git
a/include/simgrid/simdag.h
b/include/simgrid/simdag.h
index
cb54bd9
..
48fbd18
100644
(file)
--- a/
include/simgrid/simdag.h
+++ b/
include/simgrid/simdag.h
@@
-15,6
+15,13
@@
#include <set>
#endif
+#ifndef MIN
+#define MIN(a, b) ((a) < (b) ? (a) : (b))
+#endif
+#ifndef MAX
+#define MAX(a, b) ((a) > (b) ? (a) : (b))
+#endif
+
SG_BEGIN_DECL()
/** @brief Link opaque datatype