Salome HOME
[bos #41189]: ensure compatibility with Python 3.9+ bos/41189_py39 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

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