Skip to content

Commit 6cbe383

Browse files
authored
Merge pull request #6469 from bertwesarg/v4.0.x-allow-user-to-overwrite-OMPI_ENABLE_MPI1_COMPAT
v4.0.x: Allow user to overwrite `OMPI_ENABLE_MPI1_COMPAT`
2 parents 8b2d804 + 73134ab commit 6cbe383

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ompi/include/mpi.h.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,9 @@
306306
* Don't do MACRO magic for building Profiling library as it
307307
* interferes with the above.
308308
*/
309-
# if (OMPI_ENABLE_MPI1_COMPAT || OMPI_BUILDING)
309+
# if defined(OMPI_OMIT_MPI1_COMPAT_DECLS)
310+
/* The user set OMPI_OMIT_MPI1_COMPAT_DECLS, do what he commands */
311+
# elif (OMPI_ENABLE_MPI1_COMPAT || OMPI_BUILDING)
310312
# define OMPI_OMIT_MPI1_COMPAT_DECLS 0
311313
# define OMPI_REMOVED_USE_STATIC_ASSERT 0
312314
# define __mpi_interface_removed__(func, newfunc) __mpi_interface_deprecated__(#func " was removed in MPI-3.0. Use " #newfunc " instead. continuing...")

0 commit comments

Comments
 (0)