Skip to content

Commit

Permalink
Guard the SKIP_MPICXX macros against redefinition. (HDFGroup#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
drwells committed Aug 12, 2021
1 parent baefe44 commit 7c918e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/H5public.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 7c918e6

Please sign in to comment.