Salome HOME
updated copyright message
[tools/py2cpp.git] / src / PyPtr.hxx
index dad9babc8c6fc5629c166cc722df93f305a118cf..b0128433773c39b572e268fbd05bc608db9e35f4 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2021 EDF R&D
+// Copyright (C) 2019-2023 EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 //
 #ifndef PY2CPP_PYPTR_HXX
 #define PY2CPP_PYPTR_HXX
+#include "py2cppExports.hxx"
 #include <Python.h>
 #include <memory>
 #include <string>
 
 namespace py2cpp
 {
-class PyPtrDeleter
+class PY2CPP_EXPORT PyPtrDeleter
 {
 public:
   void operator()(PyObject * po){Py_DECREF(po);}
@@ -32,7 +33,7 @@ public:
 
 typedef std::unique_ptr<PyObject, PyPtrDeleter> _PyPtr;
 
-class PyPtr: public _PyPtr
+class PY2CPP_EXPORT PyPtr: public _PyPtr
 {
 public:
   PyPtr();
@@ -49,7 +50,7 @@ public:
   std::string repr()const;
 };
 
-class AutoGIL
+class PY2CPP_EXPORT AutoGIL
 {
 public:
   AutoGIL():_gstate(PyGILState_Ensure()) { }