merged boost 1.34 fix from 0.12rc branch

This commit is contained in:
Arvid Norberg 2007-03-18 01:59:00 +00:00
parent 7ff5893431
commit 3a9b1488e0
1 changed files with 5 additions and 0 deletions

View File

@ -5,9 +5,12 @@
#include <boost/python.hpp>
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include "optional.hpp"
#include <boost/version.hpp>
using namespace boost::python;
#if BOOST_VERSION < 103400
// From Boost 1.34
object import(str name)
{
@ -17,6 +20,8 @@ object import(str name)
return object(module);
}
#endif
object datetime_timedelta;
object datetime_datetime;