2
0
mirror of https://github.com/boostorg/python.git synced 2026-02-02 09:02:15 +00:00

VC6 workarounds

[SVN r15026]
This commit is contained in:
Joel de Guzman
2002-08-21 13:46:16 +00:00
parent 8a049b8ee7
commit a9bb2a017e
2 changed files with 6 additions and 1 deletions

View File

@@ -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);