X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/6f5ec5fdc42f96a8fe95f4b846b163d4dc92e0c8..25ada1b3a5e1a439e4f2468094c3397f78fe9471:/simgrid_features.h?ds=inline diff --git a/simgrid_features.h b/simgrid_features.h index 8fa8d56..a12af19 100644 --- a/simgrid_features.h +++ b/simgrid_features.h @@ -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