Guard definitions against redefinition.

Proposed by David Abrahams.
This commit is contained in:
Martin v. Löwis 2006-09-22 20:10:37 +00:00
parent 265fe28f95
commit b97a12523a
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ slots must be explicitly recast (e.g. from intargfunc
to ssizeargfunc). Compatibility with previous Python
versions can be achieved with the test::
#if PY_VERSION_HEX < 0x02050000
#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
typedef int Py_ssize_t;
#define PY_SSIZE_T_MAX INT_MAX
#define PY_SSIZE_T_MIN INT_MIN