summaryrefslogtreecommitdiffstats
path: root/PC/pyconfig.h
diff options
context:
space:
mode:
authorJozef Grajciar <jozef.grajciar@gmail.com>2021-03-01 11:18:33 (GMT)
committerGitHub <noreply@github.com>2021-03-01 11:18:33 (GMT)
commitc994ffe69553cbb34f1cea6a4494d6e7657f41b0 (patch)
tree66506909999bd0a809879b9f6e940195216c7564 /PC/pyconfig.h
parent0242494a156970186cbc4121ccf03aefbddea716 (diff)
downloadcpython-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 'PC/pyconfig.h')
-rw-r--r--PC/pyconfig.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 592b487..00a65b2 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -165,11 +165,11 @@ WIN32 is still required for the locale module.
/* Define like size_t, omitting the "unsigned" */
#ifdef MS_WIN64
-typedef __int64 ssize_t;
+typedef __int64 Py_ssize_t;
#else
-typedef _W64 int ssize_t;
+typedef _W64 int Py_ssize_t;
#endif
-#define HAVE_SSIZE_T 1
+#define HAVE_PY_SSIZE_T 1
#if defined(MS_WIN32) && !defined(MS_WIN64)
#if defined(_M_IX86)