summaryrefslogtreecommitdiffstats
path: root/Modules/xxlimited_35.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-04-02 14:48:11 (GMT)
committerGitHub <noreply@github.com>2021-04-02 14:48:11 (GMT)
commit240bcf82a11fe7433a61da70605e924c53b88096 (patch)
tree9bbcbb1a1b60f0c7d43e0f6f07f84d8a458f2511 /Modules/xxlimited_35.c
parent9bb5658bd122d40fff9f34a912be3297b303d18b (diff)
downloadcpython-240bcf82a11fe7433a61da70605e924c53b88096.zip
cpython-240bcf82a11fe7433a61da70605e924c53b88096.tar.gz
cpython-240bcf82a11fe7433a61da70605e924c53b88096.tar.bz2
bpo-41111: xxlimited.c defines Py_LIMITED_API (GH-25151)
xxlimited.c and xxlimited_35.c now define the Py_LIMITED_API macro, rather than having to do it in the build recipe. Co-authored-by: Hai Shi <shihai1992@gmail.com>
Diffstat (limited to 'Modules/xxlimited_35.c')
-rw-r--r--Modules/xxlimited_35.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/xxlimited_35.c b/Modules/xxlimited_35.c
index ce96e8c..5e93854 100644
--- a/Modules/xxlimited_35.c
+++ b/Modules/xxlimited_35.c
@@ -5,10 +5,12 @@
* See the xxlimited module for an extension module template.
*/
-/* Xxo objects */
+#define Py_LIMITED_API 0x03050000
#include "Python.h"
+/* Xxo objects */
+
static PyObject *ErrorObject;
typedef struct {