Salome HOME
Agressive Windows porting
[tools/py2cpp.git] / src / PyPtr.hxx
index dad9babc8c6fc5629c166cc722df93f305a118cf..d118d3b7d2fc2a26c51e9762fd933eaad4f8b9a9 100644 (file)
 //
 #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()) { }