Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:42

0001 // Copyright Ralf W. Grosse-Kunstleve & David Abrahams 2006.
0002 // Distributed under the Boost Software License, Version 1.0. (See
0003 // accompanying file LICENSE_1_0.txt or copy at
0004 // http://www.boost.org/LICENSE_1_0.txt)
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 }} // namespace boost::python
0028 
0029 #endif // BOOST_PYTHON_SSIZE_T_RWGK20060924_HPP