]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelAPI/ModelAPI.i
Salome HOME
updated copyright message
[modules/shaper.git] / src / ModelAPI / ModelAPI.i
index 068fd4d7a2e75380e997f60ab24545b0a696f0d6..2e70d62c7bfc82de81bba0f7b1613811e14f9dbe 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 %{
   #include "ModelAPI_swig.h"
 
+  // fix for SWIG v4.1.1
+  #if PY_VERSION_HEX >= 0x03020000
+  # define SWIGPY_SLICEOBJECT PyObject
+  #else
+  # define SWIGPY_SLICEOBJECT PySliceObject
+  #endif
+
   // fix for SWIG v2.0.4
-  #define SWIGPY_SLICE_ARG(obj) ((PyObject*)(obj))
+  #define SWIGPY_SLICE_ARG(obj)   ((SWIGPY_SLICEOBJECT*)(obj))
+  #define SWIGPY_UNICODE_ARG(obj) ((PyObject*) (obj))
 %}
 
 // import other modules
@@ -42,8 +50,6 @@
 #define MODELAPI_EXPORT
 
 // standard definitions
-%include "typemaps.i"
-%include "std_string.i"
 %include "std_list.i"
 %include "std_shared_ptr.i"
 %include "std_set.i"