Guard definitions against redefinition.
Proposed by David Abrahams.
This commit is contained in:
parent
265fe28f95
commit
b97a12523a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue