Skip to content

Commit e934be2

Browse files
committed
BOOST_PYTHON_EXPORT -> BOOST_PYTHON_DECL
[SVN r12187]
1 parent 015b875 commit e934be2

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/converter/type_id.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ bool type_id_before::operator()(type_id_t const& x, type_id_t const& y) const
1919
return x < y;
2020
}
2121

22-
BOOST_PYTHON_EXPORT std::ostream& operator<<(std::ostream& os, type_id_t const& x)
22+
BOOST_PYTHON_DECL std::ostream& operator<<(std::ostream& os, type_id_t const& x)
2323
{
2424
# ifdef BOOST_PYTHON_TYPE_ID_NAME
2525
os << x.m_base_type;

src/object/class.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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
2726
PyTypeObject 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
7270
PyTypeObject 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*
149147
find_holder_impl(PyObject* inst, converter::type_id_t type)
150148
{
151149
if (inst->ob_type->ob_type != &class_metatype_object)

0 commit comments

Comments
 (0)