From c0ef83664291820bd1db4ac88ee0ad5f7f930e81 Mon Sep 17 00:00:00 2001 From: Antonio Valentino Date: Sat, 28 Sep 2024 14:56:20 +0200 Subject: [PATCH] Compatibility with MPI4 --- pyzoltan/czoltan/mpi-compat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyzoltan/czoltan/mpi-compat.h b/pyzoltan/czoltan/mpi-compat.h index f6d1921..26b614d 100644 --- a/pyzoltan/czoltan/mpi-compat.h +++ b/pyzoltan/czoltan/mpi-compat.h @@ -13,4 +13,9 @@ typedef void *PyMPI_MPI_Message; #define MPI_Message PyMPI_MPI_Message #endif +#if (MPI_VERSION < 4) && !defined(PyMPI_HAVE_MPI_Session) +typedef void *PyMPI_MPI_Session; +#define MPI_Session PyMPI_MPI_Session +#endif + #endif/*MPI_COMPAT_H*/