X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/6f5ec5fdc42f96a8fe95f4b846b163d4dc92e0c8..54b37498c22fb09b89b05b253b8ac57c1b109a24:/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