Skip to content

Commit ca91dc8

Browse files
committed
Fix symbol visibility.
[SVN r35754]
1 parent 3a53c1d commit ca91dc8

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

include/boost/python/exec.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ namespace python
1717
// global and local are the global and local scopes respectively,
1818
// used during execution.
1919
object
20+
BOOST_PYTHON_DECL
2021
exec(str string, object global = object(), object local = object());
2122

2223
// Execute python source code from file filename.
2324
// global and local are the global and local scopes respectively,
2425
// used during execution.
2526
object
27+
BOOST_PYTHON_DECL
2628
exec_file(str filename, object global = object(), object local = object());
2729

2830
}

include/boost/python/import.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace python
1414
{
1515

1616
// Import the named module and return a reference to it.
17-
object import(str name);
17+
object BOOST_PYTHON_DECL import(str name);
1818

1919
}
2020
}

src/exec.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace boost
1313
namespace python
1414
{
1515

16-
object exec(str string, object global, object local)
16+
object BOOST_PYTHON_DECL exec(str string, object global, object local)
1717
{
1818
// should be 'char const *' but older python versions don't use 'const' yet.
1919
char *s = python::extract<char *>(string);
@@ -25,7 +25,7 @@ object exec(str string, object global, object local)
2525
// Execute python source code from file filename.
2626
// global and local are the global and local scopes respectively,
2727
// used during execution.
28-
object exec_file(str filename, object global, object local)
28+
object BOOST_PYTHON_DECL exec_file(str filename, object global, object local)
2929
{
3030
// should be 'char const *' but older python versions don't use 'const' yet.
3131
char *f = python::extract<char *>(filename);

src/import.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace boost
1313
namespace python
1414
{
1515

16-
object import(str name)
16+
object BOOST_PYTHON_DECL import(str name)
1717
{
1818
// should be 'char const *' but older python versions don't use 'const' yet.
1919
char *n = python::extract<char *>(name);

0 commit comments

Comments
 (0)