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

Private GIT Repository
Rewrite macro ESSE() and get rid of misc::str_nil.
[loba.git] / simgrid_features.h
index 8fa8d5622241fcc647d52663b917749cbf5df13f..a12af19d10b4b7ae8eee42ae1d452a5b501e33a8 100644 (file)
@@ -1,8 +1,12 @@
 #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