From 0af9790bf0cb8c531228dd0eb23adb637ec4208e Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Tue, 21 Mar 2017 13:51:15 -0500 Subject: [PATCH] Opencascade: Fix includes for version 7 --- source/opencascade/boundary_lib.cc | 7 +++++-- source/opencascade/utilities.cc | 7 ++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/source/opencascade/boundary_lib.cc b/source/opencascade/boundary_lib.cc index 7f623d0318..05f0063dfe 100644 --- a/source/opencascade/boundary_lib.cc +++ b/source/opencascade/boundary_lib.cc @@ -31,8 +31,11 @@ DEAL_II_DISABLE_EXTRA_DIAGNOSTICS #include #include #include -#include -#include + +#include +#if (OCC_VERSION_MAJOR < 7) +# include +#endif DEAL_II_ENABLE_EXTRA_DIAGNOSTICS diff --git a/source/opencascade/utilities.cc b/source/opencascade/utilities.cc index ddc50943b8..0e97c3fc12 100644 --- a/source/opencascade/utilities.cc +++ b/source/opencascade/utilities.cc @@ -43,7 +43,12 @@ DEAL_II_DISABLE_EXTRA_DIAGNOSTICS #include #include -#include +#include +#if (OCC_VERSION_MAJOR < 7) +# include +#else +# include +#endif #include #include -- 2.39.5