X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/95a02a8febe84fd1c2ed98c78c594a5e8a0116f7..1e5ef63ac93fa2b2a79a1f53866c06e549ecd7d0:/src/surf/surf_interface.cpp diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index 00c2e121ed..dcb2444df3 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -12,6 +12,7 @@ #include "src/kernel/lmm/maxmin.hpp" // Constraint #include "src/surf/HostImpl.hpp" #include "xbt/utility.hpp" +#include "src/surf/xml/platf.hpp" #include #include @@ -128,12 +129,6 @@ double surf_get_clock() return NOW; } -#ifdef _WIN32 -# define FILE_DELIM "\\" -#else -# define FILE_DELIM "/" /* FIXME: move to better location */ -#endif - std::ifstream* surf_ifsopen(std::string name) { std::ifstream* fs = new std::ifstream(); @@ -144,7 +139,7 @@ std::ifstream* surf_ifsopen(std::string name) /* search relative files in the path */ for (auto const& path_elm : surf_path) { - std::string buff = path_elm + FILE_DELIM + name; + std::string buff = path_elm + "/" + name; fs->open(buff.c_str(), std::ifstream::in); if (not fs->fail()) { @@ -167,7 +162,7 @@ FILE *surf_fopen(const char *name, const char *mode) /* search relative files in the path */ for (auto const& path_elm : surf_path) { - std::string buff = path_elm + FILE_DELIM + name; + std::string buff = path_elm + "/" + name; file = fopen(buff.c_str(), mode); if (file)