From b97dc9fd9f1529e9216e7525616e81768cd8a173 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 25 Jun 2012 11:50:11 +0200 Subject: [PATCH] API change in SimGrid 3.8: MSG_global_init -> MSG_init. --- main.cpp | 3 ++- simgrid_features.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 4c70534..9799ff8 100644 --- a/main.cpp +++ b/main.cpp @@ -24,6 +24,7 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(main); #include "misc.h" #include "options.h" #include "process.h" +#include "simgrid_features.h" #include "statistics.h" #include "synchro.h" #include "timer.h" @@ -219,7 +220,7 @@ int main(int argc, char* argv[]) } // Initialize some MSG internal data. - MSG_global_init(&argc, argv); + MSG_init(&argc, argv); install_signal_handler(); // Parse global parameters diff --git a/simgrid_features.h b/simgrid_features.h index 458d6cf..dfee257 100644 --- a/simgrid_features.h +++ b/simgrid_features.h @@ -7,6 +7,9 @@ # error "Unsupported SimGrid version. Need version > 3.5" #endif // ============================================================= // +#if SIMGRID_VERSION < MAKE_SIMGRID_VERSION(3, 8, 0) // ==== SG < 3.8 === // +# define MSG_init(argc, argv) MSG_global_init(argc, argv) +#endif // ============================================================== // #endif // !SIMGRID_FEATURES_H -- 2.39.5