forked from premiere/premiere-libtorrent
merged boost 1.34 fix from 0.12rc branch
This commit is contained in:
parent
7ff5893431
commit
3a9b1488e0
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue