From: Arnaud Giersch Date: Mon, 25 Jun 2012 09:50:11 +0000 (+0200) Subject: API change in SimGrid 3.8: MSG_global_init -> MSG_init. X-Git-Tag: v0.3~11 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/b97dc9fd9f1529e9216e7525616e81768cd8a173?ds=sidebyside API change in SimGrid 3.8: MSG_global_init -> MSG_init. --- 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