From: Matthias Maier Date: Tue, 18 Sep 2012 09:55:08 +0000 (+0000) Subject: Add a small preprocessor check for the correct inclusion of a suitable X-Git-Tag: v8.0.0~1079^2~817 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75f41303caf5ae1377c52fef72161c80d19bb622;p=dealii.git 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 --- 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