]> AND Public Git Repository - simgrid.git/blobdiff - src/smpi/smpi_mpi.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
plug a memleak. I should beter kill that XBT container instead
[simgrid.git] / src / smpi / smpi_mpi.cpp
index f462a32db5acd868714af9a68e11090336b9ad1d..2ca0704bfab6e65aaeb5fc534bc24ca86f3c0faf 100644 (file)
@@ -30,6 +30,7 @@ return P##name args2 ; \
 
 
 /* MPI User level calls */
+extern "C" { // Obviously, the C MPI interface should use the C linkage
 
 WRAPPED_PMPI_CALL(double, MPI_Wtick,(void),())
 WRAPPED_PMPI_CALL(double, MPI_Wtime,(void),())
@@ -316,3 +317,4 @@ UNIMPLEMENTED_WRAPPED_PMPI_CALL(int,MPI_Win_unlock,(int rank, MPI_Win win),(rank
 UNIMPLEMENTED_WRAPPED_PMPI_CALL(MPI_Errhandler, MPI_Errhandler_f2c,(MPI_Fint errhandler),(errhandler))
 UNIMPLEMENTED_WRAPPED_PMPI_CALL(MPI_Fint, MPI_Errhandler_c2f,(MPI_Errhandler errhandler),(errhandler))
 
+} // extern "C"