summarylogtreecommitdiffstats
path: root/mpi.patch
blob: 819dbfeccf0040ca6b3dde28ff1413521109c516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Prevent accidental inclusion of mpi c++ headers
when hdf5.h is included by a user application or
library

https://bugs.gentoo.org/show_bug.cgi?id=420777
https://bugs.archlinux.org/task/33343

--- a/src/H5public.h
+++ b/src/H5public.h
@@ -56,6 +56,8 @@
 #   include <stddef.h>
 #endif
 #ifdef H5_HAVE_PARALLEL
+#   define OMPI_SKIP_MPICXX   /* Make sure that cxx specific headers are not included */
+#   define MPICH_SKIP_MPICXX
 #   include <mpi.h>
 #ifndef MPI_FILE_NULL		/*MPIO may be defined in mpi.h already       */
 #   include <mpio.h>