From 17d4da74465834ba63d9b96054bda6a8037f87e1 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 3 Feb 2025 12:42:32 -0700 Subject: [PATCH] Remove #includes from config.h. --- include/deal.II/base/complex_overloads.h | 4 ++++ include/deal.II/base/config.h.in | 5 +---- include/deal.II/base/discrete_time.h | 3 +++ include/deal.II/base/exceptions.h | 2 ++ include/deal.II/base/memory_consumption.h | 2 ++ 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/include/deal.II/base/complex_overloads.h b/include/deal.II/base/complex_overloads.h index 52275384dc..93d44ea5bd 100644 --- a/include/deal.II/base/complex_overloads.h +++ b/include/deal.II/base/complex_overloads.h @@ -17,6 +17,10 @@ #include +#include +#include + + DEAL_II_NAMESPACE_OPEN #ifndef DOXYGEN diff --git a/include/deal.II/base/config.h.in b/include/deal.II/base/config.h.in index 818a031d06..448ece008d 100644 --- a/include/deal.II/base/config.h.in +++ b/include/deal.II/base/config.h.in @@ -594,7 +594,7 @@ _Pragma("GCC diagnostic pop") /* * Some systems require including mpi.h before stdio.h which happens in - * types.h + * base/types.h and perhaps other places. So just include it unconditionally. */ #if defined(DEAL_II_WITH_MPI) DEAL_II_DISABLE_EXTRA_DIAGNOSTICS @@ -602,9 +602,6 @@ DEAL_II_DISABLE_EXTRA_DIAGNOSTICS DEAL_II_ENABLE_EXTRA_DIAGNOSTICS #endif -#include -#include - /* * Include the boost version header to do a quick version check in case, by * accident, we have configured with one version of boost but are compiling diff --git a/include/deal.II/base/discrete_time.h b/include/deal.II/base/discrete_time.h index b7dc64c092..d8c9367fde 100644 --- a/include/deal.II/base/discrete_time.h +++ b/include/deal.II/base/discrete_time.h @@ -17,6 +17,9 @@ #include +#include + + DEAL_II_NAMESPACE_OPEN /** diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index e58f89fd96..1f333d96a5 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -17,6 +17,8 @@ #include +#include + DEAL_II_DISABLE_EXTRA_DIAGNOSTICS #include #if KOKKOS_VERSION >= 40200 diff --git a/include/deal.II/base/memory_consumption.h b/include/deal.II/base/memory_consumption.h index ff0129d717..8a4e58061c 100644 --- a/include/deal.II/base/memory_consumption.h +++ b/include/deal.II/base/memory_consumption.h @@ -18,6 +18,8 @@ #include +#include + #include #include #include -- 2.39.5