summaryrefslogtreecommitdiffstats
path: root/Modules/_stat.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-10-11 22:06:20 (GMT)
committerGitHub <noreply@github.com>2023-10-11 22:06:20 (GMT)
commit88ecb190f3717f7f0d663d004fc4b63c7e7bce77 (patch)
tree0b30d871d9d2f66e2bddf83bd63cff82a543a896 /Modules/_stat.c
parentb4e8049766a46a9e6548b18d7e9a0c9f573cd122 (diff)
downloadcpython-88ecb190f3717f7f0d663d004fc4b63c7e7bce77.zip
cpython-88ecb190f3717f7f0d663d004fc4b63c7e7bce77.tar.gz
cpython-88ecb190f3717f7f0d663d004fc4b63c7e7bce77.tar.bz2
gh-85283: _stat extension now uses the limited C API (#110711)
gh-85283: _stat extension uses the limited C API The _stat C extension is now built with the limited C API.
Diffstat (limited to 'Modules/_stat.c')
-rw-r--r--Modules/_stat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_stat.c b/Modules/_stat.c
index 3fd951b..402fbba 100644
--- a/Modules/_stat.c
+++ b/Modules/_stat.c
@@ -11,6 +11,9 @@
*
*/
+// Need limited C API version 3.13 for PyModule_Add() on Windows
+#define Py_LIMITED_API 0x030d0000
+
#include "Python.h"
#ifdef HAVE_SYS_TYPES_H