diff --git a/include/boost/python/exec.hpp b/include/boost/python/exec.hpp index fa4e324a..08d4459e 100644 --- a/include/boost/python/exec.hpp +++ b/include/boost/python/exec.hpp @@ -17,12 +17,14 @@ namespace python // global and local are the global and local scopes respectively, // used during execution. object +BOOST_PYTHON_DECL exec(str string, object global = object(), object local = object()); // Execute python source code from file filename. // global and local are the global and local scopes respectively, // used during execution. object +BOOST_PYTHON_DECL exec_file(str filename, object global = object(), object local = object()); } diff --git a/include/boost/python/import.hpp b/include/boost/python/import.hpp index 85d1afc0..45c02a93 100644 --- a/include/boost/python/import.hpp +++ b/include/boost/python/import.hpp @@ -14,7 +14,7 @@ namespace python { // Import the named module and return a reference to it. -object import(str name); +object BOOST_PYTHON_DECL import(str name); } } diff --git a/src/exec.cpp b/src/exec.cpp index 5d20bd82..5f2b8bc6 100644 --- a/src/exec.cpp +++ b/src/exec.cpp @@ -13,7 +13,7 @@ namespace boost namespace python { -object exec(str string, object global, object local) +object BOOST_PYTHON_DECL exec(str string, object global, object local) { // should be 'char const *' but older python versions don't use 'const' yet. char *s = python::extract(string); @@ -25,7 +25,7 @@ object exec(str string, object global, object local) // Execute python source code from file filename. // global and local are the global and local scopes respectively, // used during execution. -object exec_file(str filename, object global, object local) +object BOOST_PYTHON_DECL exec_file(str filename, object global, object local) { // should be 'char const *' but older python versions don't use 'const' yet. char *f = python::extract(filename); diff --git a/src/import.cpp b/src/import.cpp index b0df9b23..9686ab2f 100644 --- a/src/import.cpp +++ b/src/import.cpp @@ -13,7 +13,7 @@ namespace boost namespace python { -object import(str name) +object BOOST_PYTHON_DECL import(str name) { // should be 'char const *' but older python versions don't use 'const' yet. char *n = python::extract(name);