X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/86f9a6c7bece8591b61752ee74a005e14fe3af50..38f7ddbf61f574a934f191ef2d8358d9f8be1f96:/src/smpi/smpi_f2c.cpp diff --git a/src/smpi/smpi_f2c.cpp b/src/smpi/smpi_f2c.cpp index 7ea012b673..978722d37d 100644 --- a/src/smpi/smpi_f2c.cpp +++ b/src/smpi/smpi_f2c.cpp @@ -1,12 +1,13 @@ -/* Copyright (c) 2007-2015. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2007-2017. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#include "private.h" -#include +#include "src/smpi/private.h" +#include "src/smpi/smpi_f2c.hpp" +#include "src/smpi/smpi_process.hpp" +#include namespace simgrid{ namespace smpi{ @@ -31,12 +32,12 @@ int F2C::f2c_id(){ }; char* F2C::get_key(char* key, int id) { - snprintf(key, KEY_SIZE, "%x",id); + std::snprintf(key, KEY_SIZE, "%x",id); return key; } char* F2C::get_key_id(char* key, int id) { - snprintf(key, KEY_SIZE, "%x_%d",id, smpi_process()->index()); + std::snprintf(key, KEY_SIZE, "%x_%d",id, smpi_process()->index()); return key; }