Salome HOME
[bos #41189][Windows] Ensure compatibility with Python 3.9 bos/41189 4/head
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 14 Mar 2024 14:37:08 +0000 (15:37 +0100)
committermbs <martin.bernhard@opencascade.com>
Tue, 23 Apr 2024 09:01:13 +0000 (10:01 +0100)
src/GUI/BLSURFPluginGUI.cxx
src/GUI/BLSURFPluginGUI_HypothesisCreator.h

index f8322b900822ddb972270102c488b7486509d153..2406a3bcbfe76355991e1a95bbd97275fedba75d 100644 (file)
@@ -27,7 +27,8 @@
 // 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 <Python.h>
+  #include <pymath.h>
 #endif
 
 #include "BLSURFPluginGUI_HypothesisCreator.h"
index de91f32134344dcc7eb34d4689f8715e72c4ca73..334980ddc7d527d6f2db9b0517cbc68a728013a2 100644 (file)
   #define BLSURFPLUGIN_GUI_EXPORT
 #endif
 
+#include <Python.h>
 #ifdef WIN32
-// 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>
+  // 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>
 #endif
 
-#include <Python.h>
-
 #include <QItemDelegate>
 
 #include <SMESHGUI_Hypotheses.h>