From a9bb2a017eb1325d58ec85096cc5db88fe9b8609 Mon Sep 17 00:00:00 2001 From: Joel de Guzman Date: Wed, 21 Aug 2002 13:46:16 +0000 Subject: [PATCH] VC6 workarounds [SVN r15026] --- test/Jamfile | 2 +- test/defaults.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test/Jamfile b/test/Jamfile index 7dcd3351..6ca688a2 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -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 ; diff --git a/test/defaults.cpp b/test/defaults.cpp index a3c20a77..5c75ddda 100644 --- a/test/defaults.cpp +++ b/test/defaults.cpp @@ -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(), 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_ xc("X"); m.add(xc);