diff options
author | Jozef Grajciar <jozef.grajciar@gmail.com> | 2021-03-01 11:18:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 11:18:33 (GMT) |
commit | c994ffe69553cbb34f1cea6a4494d6e7657f41b0 (patch) | |
tree | 66506909999bd0a809879b9f6e940195216c7564 /Include/pyport.h | |
parent | 0242494a156970186cbc4121ccf03aefbddea716 (diff) | |
download | cpython-c994ffe69553cbb34f1cea6a4494d6e7657f41b0.zip cpython-c994ffe69553cbb34f1cea6a4494d6e7657f41b0.tar.gz cpython-c994ffe69553cbb34f1cea6a4494d6e7657f41b0.tar.bz2 |
bpo-11717: fix ssize_t redefinition error when targeting 32bit Windows app (GH-24479)
Diffstat (limited to 'Include/pyport.h')
-rw-r--r-- | Include/pyport.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index 46bbef2..0993b54 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -101,7 +101,9 @@ typedef intptr_t Py_intptr_t; * sizeof(size_t). C99 doesn't define such a thing directly (size_t is an * unsigned integral type). See PEP 353 for details. */ -#ifdef HAVE_SSIZE_T +#ifdef HAVE_PY_SSIZE_T + +#elif HAVE_SSIZE_T typedef ssize_t Py_ssize_t; #elif SIZEOF_VOID_P == SIZEOF_SIZE_T typedef Py_intptr_t Py_ssize_t; |