From: Arnaud Giersch Date: Thu, 29 Mar 2018 19:38:58 +0000 (+0200) Subject: Move variable definition in cpp file. X-Git-Tag: v3.20~578 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/255192ad7c234ae1f6631d080b0d2d9cfc60ec1b Move variable definition in cpp file. --- diff --git a/include/xbt/replay.hpp b/include/xbt/replay.hpp index a83d442f66..06581483e2 100644 --- a/include/xbt/replay.hpp +++ b/include/xbt/replay.hpp @@ -19,7 +19,6 @@ namespace simgrid { namespace xbt { /* To split the file if a unique one is given (specific variable for the other case live in runner()) */ typedef std::vector ReplayAction; -static std::unordered_map*> action_queues; XBT_PUBLIC_DATA std::ifstream* action_fs; XBT_PUBLIC int replay_runner(int argc, char* argv[]); diff --git a/src/xbt/xbt_replay.cpp b/src/xbt/xbt_replay.cpp index 99fe837d29..a266f7ea02 100644 --- a/src/xbt/xbt_replay.cpp +++ b/src/xbt/xbt_replay.cpp @@ -17,6 +17,7 @@ namespace xbt { std::ifstream* action_fs = nullptr; std::unordered_map action_funs; +static std::unordered_map*> action_queues; static void read_and_trim_line(std::ifstream* fs, std::string* line) {