From: Wolfgang Bangerth Date: Thu, 22 May 2025 22:32:56 +0000 (-0600) Subject: Special-case cstddef inclusion. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=331f135517d26a62d2d972b2c48d3ef495b6c590;p=dealii.git Special-case cstddef inclusion. --- diff --git a/source/base/mpi.cc b/source/base/mpi.cc index f3cc845fe1..e8d9fcbddd 100644 --- a/source/base/mpi.cc +++ b/source/base/mpi.cc @@ -27,6 +27,12 @@ #include +// In this file, we use offsetof, which is a macro. When compiling +// with C++20 modules, this presents a problem because we wrap all of +// namespace std -- and then don't have access to macros. As a +// consequence, we really do need the following #include, even when +// building modules: +#include // Do not convert for module purposes #include #include #include