X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/25ada1b3a5e1a439e4f2468094c3397f78fe9471..799e14e4362fc824b087ff366f50e7231371145a:/simgrid_features.h diff --git a/simgrid_features.h b/simgrid_features.h index a12af19..56fcbfb 100644 --- a/simgrid_features.h +++ b/simgrid_features.h @@ -1,15 +1,25 @@ #ifndef SIMGRID_FEATURES_H #define SIMGRID_FEATURES_H -// 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 -#endif +/* What is defined here: + * ===================== + * + * MSG_WAIT_DESTROYS_COMMS 1 if MSG_wait destroys communications + * (has changed after SimGrid 3.5) + */ + +#if !defined(SIMGRID_VERSION) // ========== SimGrid <= 3.5 ============= // + +#define MSG_WAIT_DESTROYS_COMMS 1 + +#else // ================================= SimGrid > 3.5 ============== // + +#define MSG_WAIT_DESTROYS_COMMS 0 + +#endif // ============================================================= // #endif // !SIMGRID_FEATURES_H + +// Local variables: +// mode: c++ +// End: