diff --git a/example/noncopyable_export.cpp b/example/noncopyable_export.cpp index 32a88d14..b42802cc 100644 --- a/example/noncopyable_export.cpp +++ b/example/noncopyable_export.cpp @@ -3,9 +3,7 @@ namespace python = boost::python; #include "noncopyable.h" -extern "C" -DL_EXPORT(void) -initnoncopyable_export() +BOOST_PYTHON_MODULE_INIT(noncopyable_export) { try { diff --git a/example/noncopyable_import.cpp b/example/noncopyable_import.cpp index b1ccc0b5..0c1b31af 100644 --- a/example/noncopyable_import.cpp +++ b/example/noncopyable_import.cpp @@ -16,9 +16,7 @@ namespace { // Avoid cluttering the global namespace. } } -extern "C" -DL_EXPORT(void) -initnoncopyable_import() +BOOST_PYTHON_MODULE_INIT(noncopyable_import) { try {