From: Arnaud Giersch Date: Tue, 8 Feb 2011 14:09:23 +0000 (+0100) Subject: Cosmetics. X-Git-Tag: v0.1~160 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/799e14e4362fc824b087ff366f50e7231371145a?ds=inline Cosmetics. --- 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: