X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a89702134ae7f9d4fb2178523311a4201d150480..a96adb51dabc0c759af11e60c770355f22a54ef3:/src/surf/xml/platf.hpp diff --git a/src/surf/xml/platf.hpp b/src/surf/xml/platf.hpp index 159aa1ae14..bd5c32f34d 100644 --- a/src/surf/xml/platf.hpp +++ b/src/surf/xml/platf.hpp @@ -8,7 +8,7 @@ #include -SG_BEGIN_DECL() +extern "C" { /* Module management functions */ XBT_PUBLIC(void) sg_platf_init();; @@ -23,13 +23,12 @@ XBT_PUBLIC(void) surf_parse_warn(std::string msg); XBT_PUBLIC(double) surf_parse_get_double(std::string s); XBT_PUBLIC(int) surf_parse_get_int(std::string s); -XBT_PUBLIC(double) surf_parse_get_time(const char *string, const char *entity_kind, const char *name); -XBT_PUBLIC(double) surf_parse_get_size(const char *string, const char *entity_kind, const char *name); -XBT_PUBLIC(double) surf_parse_get_bandwidth(const char *string, const char *entity_kind, const char *name); -XBT_PUBLIC(double) surf_parse_get_speed(const char *string, const char *entity_kind, const char *name); +XBT_PUBLIC(double) surf_parse_get_time(const char* string, const char* entity_kind, std::string name); +XBT_PUBLIC(double) surf_parse_get_size(const char* string, const char* entity_kind, std::string name); +XBT_PUBLIC(double) surf_parse_get_bandwidth(const char* string, const char* entity_kind, std::string name); +XBT_PUBLIC(double) surf_parse_get_speed(const char* string, const char* entity_kind, std::string name); XBT_PUBLIC(int) surf_parse(); /* Entry-point to the parser */ - -SG_END_DECL() +} #endif