Skip to content

Commit e036941

Browse files
committed
Revert "mpi.h: remove MPI_UB/MPI_LB when not enabling MPI-1 compat"
This reverts commit 7223334. Signed-off-by: Geoffrey Paulsen <[email protected]>
1 parent 6de263f commit e036941

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ompi/include/mpi.h.in

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,13 @@ OMPI_DECLSPEC extern MPI_Fint *MPI_F_STATUSES_IGNORE;
10371037
#define MPI_LONG_INT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_long_int)
10381038
#define MPI_SHORT_INT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_short_int)
10391039
#define MPI_2INT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_2int)
1040-
1040+
#if !OMPI_OMIT_MPI1_COMPAT_DECLS
1041+
/*
1042+
* Removed datatypes
1043+
*/
1044+
#define MPI_UB OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_ub)
1045+
#define MPI_LB OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_lb)
1046+
#endif
10411047
#define MPI_WCHAR OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_wchar)
10421048
#if OPAL_HAVE_LONG_LONG
10431049
#define MPI_LONG_LONG_INT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_long_long_int)

0 commit comments

Comments
 (0)