From af3f56a349faf4b10b4ddb8973e6dfafe32f79ea Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 11 Apr 2025 09:15:54 -0600 Subject: [PATCH] Add header include to import PETSc/SLEPc macro names. --- include/deal.II/base/config.h.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/deal.II/base/config.h.in b/include/deal.II/base/config.h.in index a57ff299fb..b96bb2b734 100644 --- a/include/deal.II/base/config.h.in +++ b/include/deal.II/base/config.h.in @@ -509,10 +509,11 @@ DEAL_II_NAMESPACE_CLOSE * PETSc: * * Note: The following macros are defined in petscversion.h - * so we don't repeat them here. + * so we simply refer to the ones there. */ #ifdef DEAL_II_WITH_PETSC +# include # define DEAL_II_PETSC_VERSION_LT(major,minor,subminor) \ PETSC_VERSION_LT(major,minor,subminor) # define DEAL_II_PETSC_VERSION_GTE(major,minor,subminor) \ @@ -524,6 +525,7 @@ DEAL_II_NAMESPACE_CLOSE */ #ifdef DEAL_II_WITH_SLEPC +# include # define DEAL_II_SLEPC_VERSION_LT(major,minor,subminor) \ SLEPC_VERSION_LT(major,minor,subminor) # define DEAL_II_SLEPC_VERSION_GTE(major,minor,subminor) \ -- 2.39.5