From 79238ed23f9612f2b53bada88a3475974e68d9ee Mon Sep 17 00:00:00 2001 From: maier Date: Tue, 18 Sep 2012 09:55:08 +0000 Subject: [PATCH] Add a small preprocessor check for the correct inclusion of a suitable mpi.h header git-svn-id: https://svn.dealii.org/branches/branch_cmake@26468 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/base/mpi.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deal.II/include/deal.II/base/mpi.h b/deal.II/include/deal.II/base/mpi.h index 2fdb14da05..3be2ccc03c 100644 --- a/deal.II/include/deal.II/base/mpi.h +++ b/deal.II/include/deal.II/base/mpi.h @@ -18,6 +18,13 @@ #if defined(DEAL_II_COMPILER_SUPPORTS_MPI) || defined(DEAL_II_USE_PETSC) # include + // Check whether is a suitable + // include for us (if MPI_SEEK_SET is not + // defined, we'll die anyway): +# ifndef MPI_SEEK_SET +# error "The buildsystem included an insufficient mpi.h header that does not export MPI_SEEK_SET" +# endif + #else // without MPI, we would still like to use // some constructs with MPI data -- 2.39.5