From 331f135517d26a62d2d972b2c48d3ef495b6c590 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 22 May 2025 16:32:56 -0600 Subject: [PATCH] Special-case cstddef inclusion. --- source/base/mpi.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5