vcpkg/ports/boost-mpi/fix-build-with-msvc.patch

30 lines
1.5 KiB
Diff
Raw Normal View History

2023-09-14 06:40:46 +08:00
include/boost/mpi/detail/offsets.hpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/boost/mpi/detail/offsets.hpp b/include/boost/mpi/detail/offsets.hpp
index 8d33f8e..e6afaa0 100644
--- a/include/boost/mpi/detail/offsets.hpp
+++ b/include/boost/mpi/detail/offsets.hpp
@@ -17,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 BOOST_MPI_DECL sizes2offsets(int const* sizes, int* offsets, int n);
+BOOST_MPI_DECL void sizes2offsets(int const* sizes, int* offsets, int n);
// Same as size2offset(sizes.data(), offsets.data(), sizes.size())
-void BOOST_MPI_DECL sizes2offsets(std::vector<int> const& sizes, std::vector<int>& offsets);
+BOOST_MPI_DECL void sizes2offsets(std::vector<int> const& sizes, std::vector<int>& 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
@@ -33,7 +33,7 @@ void offsets2skipped(int const* sizes, int const* offsets, int* skipped, int n);
// displs are not already provided.
// If memory was allocated, returns a pointer to it
// otherwise null.
-int* BOOST_MPI_DECL make_offsets(communicator const& comm, int const* sizes, int const* displs, int root = -1);
+BOOST_MPI_DECL int* make_offsets(communicator const& comm, int const* sizes, int const* displs, int root = -1);
// Reconstruct skip slots from sizes and offsets.
// Only takes place if on the root process and if