1
0
mirror of synced 2024-07-05 02:19:25 +02:00
TheChymera-overlay/sci-libs/hdf5/files/hdf5-1.8.9-mpicxx.patch

17 lines
494 B
Diff
Raw Normal View History

2019-03-22 04:33:13 +01:00
Prevent accidental inclusion of mpi c++ headers
when hdf5.h is included third party library
https://bugs.gentoo.org/show_bug.cgi?id=420777
--- a/src/H5public.h
+++ b/src/H5public.h
@@ -58,6 +58,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>