From: jfa Date: Mon, 15 Jan 2024 14:32:07 +0000 (+0000) Subject: Porting to OCCT 7.8.0 X-Git-Tag: V9_13_0a1^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FOCCT780;p=modules%2Fparavis.git Porting to OCCT 7.8.0 --- diff --git a/src/PVGUI/PVGUI_Module.cxx b/src/PVGUI/PVGUI_Module.cxx index a1776d79..79bfdccd 100644 --- a/src/PVGUI/PVGUI_Module.cxx +++ b/src/PVGUI/PVGUI_Module.cxx @@ -22,7 +22,23 @@ #define PARAVIS_MODULE_NAME "PARAVIS" -#include // E.A. must be included before Python.h to fix compilation on windows +#include + +#if OCC_VERSION_LARGE < 0x07080000 + +#include // E.A. must be included before Python.h to fix compilation on windows + +#else + +#ifdef _MSC_VER +#ifndef _USE_MATH_DEFINES +#define _USE_MATH_DEFINES +#endif +#include +#endif + +#endif + #ifdef HAVE_FINITE #undef HAVE_FINITE // VSR: avoid compilation warning on Linux : "HAVE_FINITE" redefined #endif