From: Luca Heltai Date: Fri, 15 Sep 2017 22:44:25 +0000 (+0200) Subject: Fixed compilation issue in serial. X-Git-Tag: v9.0.0-rc1~1070^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4852%2Fhead;p=dealii.git Fixed compilation issue in serial. --- diff --git a/include/deal.II/base/mpi.h b/include/deal.II/base/mpi.h index be74af12c4..dd8a512b5c 100644 --- a/include/deal.II/base/mpi.h +++ b/include/deal.II/base/mpi.h @@ -25,14 +25,23 @@ // some constructs with MPI data // types. Therefore, create some dummies typedef int MPI_Comm; -const int MPI_COMM_SELF = 0; -const int MPI_COMM_WORLD = 0; typedef int MPI_Datatype; typedef int MPI_Op; - -static const int MPI_MIN = 0; -static const int MPI_MAX = 0; -static const int MPI_SUM = 0; +# ifndef MPI_COMM_WORLD +# define MPI_COMM_WORLD 0 +# endif +# ifndef MPI_COMM_SELF +# define MPI_COMM_SELF 0 +# endif +# ifndef MPI_MIN +# define MPI_MIN 0 +# endif +# ifndef MPI_MAX +# define MPI_MAX 0 +# endif +# ifndef MPI_SUM +# define MPI_SUM 0 +# endif #endif DEAL_II_NAMESPACE_OPEN