Mercurial > hg-stable
changeset 25026:80d28a88137f
util.h: kill no longer needed definitions for Python < 2.5
see e1fb276d4619
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Wed, 13 May 2015 18:57:38 +0200 |
parents | 72f7f98bc5e5 |
children | 297ea0df75d0 |
files | mercurial/util.h |
diffstat | 1 files changed, 0 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.h Tue May 12 15:04:19 2015 -0700 +++ b/mercurial/util.h Wed May 13 18:57:38 2015 +0200 @@ -101,22 +101,6 @@ #endif /* PY_VERSION_HEX */ -#if (PY_VERSION_HEX < 0x02050000) -/* Definitions to get compatibility with python 2.4 and earlier which - does not have Py_ssize_t. See also PEP 353. - Note: msvc (8 or earlier) does not have ssize_t, so we use Py_ssize_t. -*/ -typedef int Py_ssize_t; -typedef Py_ssize_t (*lenfunc)(PyObject *); -typedef PyObject *(*ssizeargfunc)(PyObject *, Py_ssize_t); -#define PyInt_FromSsize_t PyInt_FromLong - -#if !defined(PY_SSIZE_T_MIN) -#define PY_SSIZE_T_MAX INT_MAX -#define PY_SSIZE_T_MIN INT_MIN -#endif -#endif - #ifdef _WIN32 #ifdef _MSC_VER /* msvc 6.0 has problems */