2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 06:02:14 +00:00

Fix symbol visibility.

[SVN r35754]
This commit is contained in:
Stefan Seefeld
2006-10-27 21:19:47 +00:00
parent 9f4d39d9fe
commit a74c8e3da3
4 changed files with 6 additions and 4 deletions

View File

@@ -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<char *>(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<char *>(filename);