File indexing completed on 2025-01-18 09:50:42
0001
0002
0003
0004
0005
0006 #ifndef BOOST_PYTHON_SSIZE_T_RWGK20060924_HPP
0007 # define BOOST_PYTHON_SSIZE_T_RWGK20060924_HPP
0008
0009 # include <boost/python/detail/prefix.hpp>
0010
0011 namespace boost { namespace python {
0012
0013 #if PY_VERSION_HEX >= 0x02050000
0014
0015 typedef Py_ssize_t ssize_t;
0016 ssize_t const ssize_t_max = PY_SSIZE_T_MAX;
0017 ssize_t const ssize_t_min = PY_SSIZE_T_MIN;
0018
0019 #else
0020
0021 typedef int ssize_t;
0022 ssize_t const ssize_t_max = INT_MAX;
0023 ssize_t const ssize_t_min = INT_MIN;
0024
0025 #endif
0026
0027 }}
0028
0029 #endif