]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Porting to OCCT 7.8.0 OCCT780
authorjfa <jfa@opencascade.com>
Mon, 15 Jan 2024 14:32:07 +0000 (14:32 +0000)
committermbs <martin.bernhard@opencascade.com>
Thu, 16 May 2024 07:41:18 +0000 (08:41 +0100)
src/PVGUI/PVGUI_Module.cxx

index a1776d79f0fe2be2b55c034c933c94ebfa676728..79bfdccd854b36043b944c743b9eec78a03f11a0 100644 (file)
 
 #define PARAVIS_MODULE_NAME "PARAVIS"
 
-#include <Standard_math.hxx>  // E.A. must be included before Python.h to fix compilation on windows
+#include <Basics_OCCTVersion.hxx>
+
+#if OCC_VERSION_LARGE < 0x07080000
+
+#include <Standard_Real.hxx>  // 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 <math.h>
+#endif
+
+#endif
+
 #ifdef HAVE_FINITE
 #undef HAVE_FINITE            // VSR: avoid compilation warning on Linux : "HAVE_FINITE" redefined
 #endif