From 7dfcf544e9901c9018c76780ffe554b561528a16 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 31 Jan 2001 10:24:04 +0000 Subject: [PATCH] if we know that at least one of the HSL functions are there, include the respective include file. Otherwise save some CPU cycles in the compiler git-svn-id: https://svn.dealii.org/trunk@3848 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/sparse_direct.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deal.II/lac/source/sparse_direct.cc b/deal.II/lac/source/sparse_direct.cc index b0879d5c19..180e0c0997 100644 --- a/deal.II/lac/source/sparse_direct.cc +++ b/deal.II/lac/source/sparse_direct.cc @@ -13,11 +13,16 @@ #include -#include #include #include #include +// if we know that at least one of the HSL functions are there, +// include the respective include file. Otherwise save some CPU cycles +// in the compiler +#if HAVE_HSL_MA27 || HAVE_HSL_MA47 +# include +#endif // if the HSL functions are not there, define them empty and throw an // exception -- 2.39.5