From 82edce6450a2d98c6cba105f623249ea55552e97 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 21 Mar 2001 01:09:17 +0000 Subject: [PATCH] Now using BOOST_PYTHON_MODULE_INIT. [SVN r9617] --- example/noncopyable_export.cpp | 4 +--- example/noncopyable_import.cpp | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) 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 {