// Copyright Daniel Wallin 2006. Use, modification and distribution is // subject to the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_PYTHON_HPP #define BOOST_PYTHON_HPP #include #include // https://github.com/boostorg/system/issues/32#issuecomment-462912013 #define HAVE_SNPRINTF #include #include // in boost 1.60, placeholders moved into a namespace, just like std #if BOOST_VERSION >= 106000 using namespace boost::placeholders; #endif #include #include #include #include // something in here creates a define for this, presumably to make older // versions of msvc appear to support snprintf #ifdef snprintf #undef snprintf #endif #ifdef vsnprintf #undef vsnprintf #endif inline void python_deprecated(char const* msg) { if (PyErr_WarnEx(PyExc_DeprecationWarning, msg, 1) == -1) boost::python::throw_error_already_set(); } #endif