summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-09-17 19:11:53 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-09-17 19:11:53 (GMT)
commit71c80267ba0db1c1b439d39e4bd7c27b82510c92 (patch)
treeff6c22fdf1d55ac459890de72371ac936ee6c9fb /src
parent406890277cbe92be1d68721a6fa115441ab1a726 (diff)
downloadhdf5-71c80267ba0db1c1b439d39e4bd7c27b82510c92.zip
hdf5-71c80267ba0db1c1b439d39e4bd7c27b82510c92.tar.gz
hdf5-71c80267ba0db1c1b439d39e4bd7c27b82510c92.tar.bz2
Added MPICH_SKIP_MPICXX and OMPI_SKIP_CXX to H5public.h to avoid inadvertant
linking to the deprecated MPI C++ wrappers. Fixes HDFFV-10893.
Diffstat (limited to 'src')
-rw-r--r--src/H5public.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5public.h b/src/H5public.h
index c15b58a..638de58 100644
--- a/src/H5public.h
+++ b/src/H5public.h
@@ -57,6 +57,9 @@
# include <stddef.h>
#endif
#ifdef H5_HAVE_PARALLEL
+/* Don't link against MPI C++ bindings */
+# define MPICH_SKIP_MPICXX 1
+# define OMPI_SKIP_MPICXX 1
# include <mpi.h>
#ifndef MPI_FILE_NULL /*MPIO may be defined in mpi.h already */
# include <mpio.h>