mirror of
https://github.com/boostorg/python.git
synced 2026-01-24 06:02:14 +00:00
VC6 workarounds
[SVN r15026]
This commit is contained in:
@@ -63,7 +63,7 @@ bpl-test builtin_converters : test_builtin_converters.py test_builtin_converters
|
||||
bpl-test test_pointer_adoption ;
|
||||
bpl-test operators ;
|
||||
bpl-test callbacks ;
|
||||
bpl-test defaults ;
|
||||
bpl-test defaults_ext : defaults.py defaults.cpp ;
|
||||
|
||||
bpl-test object ;
|
||||
bpl-test list ;
|
||||
|
||||
@@ -99,7 +99,12 @@ BOOST_PYTHON_MODULE_INIT(defaults_ext)
|
||||
{
|
||||
module m("defaults_ext");
|
||||
m.def("foo", foo, foo_stubs());
|
||||
|
||||
#if !(defined(BOOST_MSVC) && (BOOST_MSVC <= 1200))
|
||||
m.def("bar", signature<object(*)(int, char, std::string, double)>(), bar_stubs());
|
||||
#else // signature does not work on VC6 only (VC is ok)
|
||||
m.def("bar", (object(*)(int, char, std::string, double))0, bar_stubs());
|
||||
#endif
|
||||
|
||||
class_<X> xc("X");
|
||||
m.add(xc);
|
||||
|
||||
Reference in New Issue
Block a user