From 799e14e4362fc824b087ff366f50e7231371145a Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 8 Feb 2011 15:09:23 +0100 Subject: [PATCH] Cosmetics. --- simgrid_features.h | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) 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: -- 2.39.5