diff --git a/bindings/python/src/datetime.cpp b/bindings/python/src/datetime.cpp index b4616839e..da1347671 100755 --- a/bindings/python/src/datetime.cpp +++ b/bindings/python/src/datetime.cpp @@ -5,9 +5,12 @@ #include #include #include "optional.hpp" +#include 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;