From 1ef23d0c610e4e9418a26ef7e75d859a5e389bf5 Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 15 Jan 2024 14:32:07 +0000 Subject: [PATCH] Porting to OCCT 7.8.0 --- src/PVGUI/PVGUI_Module.cxx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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 -- 2.39.2