]> AND Private Git Repository - loba.git/blobdiff - simgrid_features.h
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Define opt::min_comp_iter_duration.
[loba.git] / simgrid_features.h
index 8fa8d5622241fcc647d52663b917749cbf5df13f..a12af19d10b4b7ae8eee42ae1d452a5b501e33a8 100644 (file)
@@ -1,8 +1,12 @@
 #ifndef SIMGRID_FEATURES_H
 #define SIMGRID_FEATURES_H
 
 #ifndef SIMGRID_FEATURES_H
 #define SIMGRID_FEATURES_H
 
-// fixme: dirty hack
-#if defined(XBT_RUNNING_CTX_INITIALIZER)
+// Try to guess if MSG_wait destroys communications or not, because it
+// changed after SimGrid 3.5.
+//
+// Use some define introduced after that.               fixme: dirty hack
+//
+#if defined(SIMGRID_VERSION)
 #  define MSG_WAIT_DESTROYS_COMMS 0
 #else
 #  define MSG_WAIT_DESTROYS_COMMS 1
 #  define MSG_WAIT_DESTROYS_COMMS 0
 #else
 #  define MSG_WAIT_DESTROYS_COMMS 1