Skip to content

Commit 3058041

Browse files
authored
Fix for boostorg#131 initModule symbol not visible in 1.64
If a global visibility is set to 'hidden', importing modules that define classes without either 'noimport' or 'init' causes errors like: `ImportError: dynamic module does not define init function` This seems to be due to some, probably unintended changes from boostorg#1.
1 parent c2424bc commit 3058041

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/boost/python/object/instance.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace boost { namespace python { namespace objects {
1818

1919
// Each extension instance will be one of these
2020
template <class Data = char>
21-
struct instance
21+
struct BOOST_PYTHON_DECL instance
2222
{
2323
PyObject_VAR_HEAD
2424
PyObject* dict;

0 commit comments

Comments
 (0)