44// "as is" without express or implied warranty, and with no claim as
55// to its suitability for any purpose.
66
7- #include < boost/python/export .hpp>
7+ #include < boost/python/detail/config .hpp>
88#include < boost/python/module.hpp>
99#include < boost/python/detail/wrap_python.hpp>
1010#include < boost/python/object/class.hpp>
@@ -23,7 +23,6 @@ holder_base::~holder_base()
2323{
2424}
2525
26- // BOOST_PYTHON_EXPORT
2726PyTypeObject class_metatype_object = {
2827 PyObject_HEAD_INIT (0 )// &PyType_Type)
2928 0 ,
@@ -68,7 +67,6 @@ PyTypeObject class_metatype_object = {
6867 // PyType_GenericNew /* tp_new */
6968};
7069
71- // BOOST_PYTHON_EXPORT
7270PyTypeObject class_type_object = {
7371 PyObject_HEAD_INIT (0 ) // &class_metatype_object)
7472 0 ,
@@ -112,7 +110,7 @@ PyTypeObject class_type_object = {
112110 PyType_GenericNew
113111};
114112
115- BOOST_PYTHON_EXPORT PyTypeObject* class_metatype ()
113+ BOOST_PYTHON_DECL PyTypeObject* class_metatype ()
116114{
117115 if (class_metatype_object.tp_dict == 0 )
118116 {
@@ -125,7 +123,7 @@ BOOST_PYTHON_EXPORT PyTypeObject* class_metatype()
125123 return &class_metatype_object;
126124}
127125
128- BOOST_PYTHON_EXPORT PyTypeObject* class_type ()
126+ BOOST_PYTHON_DECL PyTypeObject* class_type ()
129127{
130128 if (class_type_object.tp_dict == 0 )
131129 {
@@ -145,7 +143,7 @@ void holder_base::install(PyObject* self)
145143 ((instance*)self)->objects = this ;
146144}
147145
148- BOOST_PYTHON_EXPORT holder_base*
146+ BOOST_PYTHON_DECL holder_base*
149147find_holder_impl (PyObject* inst, converter::type_id_t type)
150148{
151149 if (inst->ob_type ->ob_type != &class_metatype_object)
0 commit comments