summaryrefslogtreecommitdiffstats
path: root/src/H5public.h
diff options
context:
space:
mode:
authorDavid Wells <drwells@email.unc.edu>2021-08-12 12:12:21 (GMT)
committerGitHub <noreply@github.com>2021-08-12 12:12:21 (GMT)
commit7c918e685fea4d58b632389999f092b1f4b33d17 (patch)
treebbe2718e67fc13f93fac9d19dc752052225512f8 /src/H5public.h
parentbaefe444942452a17f982081ca733f010557073c (diff)
downloadhdf5-7c918e685fea4d58b632389999f092b1f4b33d17.zip
hdf5-7c918e685fea4d58b632389999f092b1f4b33d17.tar.gz
hdf5-7c918e685fea4d58b632389999f092b1f4b33d17.tar.bz2
Guard the SKIP_MPICXX macros against redefinition. (#892)
Diffstat (limited to 'src/H5public.h')
-rw-r--r--src/H5public.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5public.h b/src/H5public.h
index e192de0..dbccbf8 100644
--- a/src/H5public.h
+++ b/src/H5public.h
@@ -56,8 +56,12 @@
#ifdef H5_HAVE_PARALLEL
/* Don't link against MPI C++ bindings */
+#ifndef MPICH_SKIP_MPICXX
#define MPICH_SKIP_MPICXX 1
+#endif
+#ifndef OMPI_SKIP_MPICXX
#define OMPI_SKIP_MPICXX 1
+#endif
#include <mpi.h>
#ifndef MPI_FILE_NULL /* MPIO may be defined in mpi.h already */
#include <mpio.h>