From 81143c17a17997a95a25dc98cb28fddf4d5272a8 Mon Sep 17 00:00:00 2001 From: Uwe Date: Mon, 17 Oct 2022 04:12:07 +0200 Subject: [PATCH] [FEM] HypothesisPy: add inclusion comment - add comments to avoid in future cases like this: https://github.com/FreeCAD/FreeCAD/issues/7585#issuecomment-1280170176 - also include explicitly SMESH_Version.h as safe guard in case HypothesisPy.h might in future be included in a different position --- src/Mod/Fem/App/HypothesisPy.cpp | 2 +- src/Mod/Fem/App/HypothesisPy.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Fem/App/HypothesisPy.cpp b/src/Mod/Fem/App/HypothesisPy.cpp index b2a6640e94..f3f7a6d457 100755 --- a/src/Mod/Fem/App/HypothesisPy.cpp +++ b/src/Mod/Fem/App/HypothesisPy.cpp @@ -28,7 +28,7 @@ #ifndef _PreComp_ # include - +# include // needed for SMESH_VERSION_MAJOR # include # include # include diff --git a/src/Mod/Fem/App/HypothesisPy.h b/src/Mod/Fem/App/HypothesisPy.h index 95076512d2..5b321ac7d4 100755 --- a/src/Mod/Fem/App/HypothesisPy.h +++ b/src/Mod/Fem/App/HypothesisPy.h @@ -25,7 +25,7 @@ #include #include -#include +#include // needed for SMESH_VERSION_MAJOR class SMESH_Hypothesis; class SMESH_Gen;