From: deal Date: Thu, 21 Oct 2004 13:51:44 +0000 (+0000) Subject: Move some code under #ifdef guards. This works, but the main reason we X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91335d76f1c4a91532d912ad51c09dbed9011f3d;p=dealii-svn.git Move some code under #ifdef guards. This works, but the main reason we do it is that if we include these header files icc71 can't be used any more on newer linux systems due to a stupid interaction with /usr/include/linux.h that simply kicks out non-gcc versions (icc8 identifies itself as gcc, so isn't affected)... git-svn-id: https://svn.dealii.org/trunk@9716 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/sparse_direct.cc b/deal.II/lac/source/sparse_direct.cc index 46b0d5f4cc..332bd21ff7 100644 --- a/deal.II/lac/source/sparse_direct.cc +++ b/deal.II/lac/source/sparse_direct.cc @@ -22,24 +22,27 @@ #include #include -#include -#include -#include -#include - -#ifndef DEAL_II_USE_DIRECT_ERRNO_H -# include -#else -# include -#endif -#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 +// +// also, we don't need all the other headers if the respective hsl +// routines aren't used #if defined(HAVE_HSL_MA27) || defined(HAVE_HSL_MA47) # include + +# include +# include +# include +# include + +# ifndef DEAL_II_USE_DIRECT_ERRNO_H +# include +# else +# include +# endif +# include #endif // include UMFPACK file.