diff --git a/include/boost/mpi/detail/offsets.hpp b/include/boost/mpi/detail/offsets.hpp index 7e5ab7d..0cfc9c9 100644 --- a/include/boost/mpi/detail/offsets.hpp +++ b/include/boost/mpi/detail/offsets.hpp @@ -9,6 +9,7 @@ #define BOOST_MPI_OFFSETS_HPP #include +#include #include namespace boost { namespace mpi { @@ -16,10 +17,10 @@ namespace detail { // Convert a sequence of sizes [S0..Sn] to a sequence displacement // [O0..On] where O[0] = 0 and O[k+1] = O[k]+S[k]. -void sizes2offsets(int const* sizes, int* offsets, int n); +void BOOST_MPI_DECL sizes2offsets(int const* sizes, int* offsets, int n); // Same as size2offset(sizes.data(), offsets.data(), sizes.size()) -void sizes2offsets(std::vector const& sizes, std::vector& offsets); +void BOOST_MPI_DECL sizes2offsets(std::vector const& sizes, std::vector& offsets); // Given a sequence of sizes (typically the number of records dispatched // to each process in a scater) and a sequence of displacements (typically the