Salome HOME
[bos #41189]: ensure compatibility with Python 3.9+ bos/41189_py39 master 21/head
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 24 Apr 2024 12:55:58 +0000 (14:55 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 24 Apr 2024 12:55:58 +0000 (14:55 +0200)
src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx
src/GEOMImpl/GEOMImpl_IHealingOperations.hxx

index fef00a9ad2dc0efb1c6d9970760200500a04c013..e20f8eac2f79ed89a1eea97b6fbda54b00604ced 100644 (file)
 // E.A. : On windows with python 2.6, there is a conflict
 // E.A. : between pymath.h and Standard_math.h which define
 // E.A. : some same symbols : acosh, asinh, ...
-#include <Standard_math.hxx>
-#include <pymath.h>
+ #include <Standard_math.hxx>
+ #include <Python.h>
+ #include <pymath.h>
+#else
+ #include <Python.h>
 #endif
 
-#include <Python.h>
 #include <structmember.h>
 
 #ifdef HAVE_FINITE
index ac9b0dfe69f1a66d89a52842bbc2605afbe4bc3c..27c0cc42ed91d68cf75a7354c46a0345d72895db 100644 (file)
@@ -109,7 +109,7 @@ class GEOMImpl_IHealingOperations : public GEOM_IOperations {
   // This function doesn't do any healing.
   // The only goal is to provide Python dump functionality for 
   // algorithms entirely implemented in Python.
-  void FuncToPythonDump(
+  Standard_EXPORT void FuncToPythonDump(
     Handle(GEOM_Object) theObject,
     Handle(GEOM_Object) result,
     const char* imports,