From fbbd6a9e07c75cb4e57644a0cb27f7f3bc122d58 Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 27 May 2024 20:11:28 +0100 Subject: [PATCH] Fix compilation error (conflict of OK name between OCCT Plate_Plate.hxx and GEOM GEOM_IOperations.hxx) --- src/GEOMImpl/GEOMImpl_WrappingDriver.cxx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/GEOMImpl/GEOMImpl_WrappingDriver.cxx b/src/GEOMImpl/GEOMImpl_WrappingDriver.cxx index 3d3037fee..e89a3e62c 100644 --- a/src/GEOMImpl/GEOMImpl_WrappingDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_WrappingDriver.cxx @@ -20,6 +20,15 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // +// These GeomPlate_* headers must be included before Salome ones +// because of conflicting OK variable/constant between +// OCCT Plate_Plate.hxx and GEOM GEOM_IOperations.hxx +#include +#include +#include +#include +#include + #include #include @@ -44,11 +53,6 @@ #include #include #include -#include -#include -#include -#include -#include #include #include @@ -449,4 +453,4 @@ bool GEOMImpl_WrappingDriver:: return true; } -IMPLEMENT_STANDARD_RTTIEXT(GEOMImpl_WrappingDriver, GEOM_BaseDriver) \ No newline at end of file +IMPLEMENT_STANDARD_RTTIEXT(GEOMImpl_WrappingDriver, GEOM_BaseDriver) -- 2.39.2