diff options
author | Sam Gross <colesbury@gmail.com> | 2023-10-30 16:06:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-30 16:06:09 (GMT) |
commit | 6dfb8fe0236718e9afc8136ff2b58dcfbc182022 (patch) | |
tree | 1b5ad337bc68ebc2ff1325c0b695807c48640d30 /Modules/_stat.c | |
parent | 05f2f0ac92afa560315eb66fd6576683c7f69e2d (diff) | |
download | cpython-6dfb8fe0236718e9afc8136ff2b58dcfbc182022.zip cpython-6dfb8fe0236718e9afc8136ff2b58dcfbc182022.tar.gz cpython-6dfb8fe0236718e9afc8136ff2b58dcfbc182022.tar.bz2 |
gh-110481: Implement biased reference counting (gh-110764)
Diffstat (limited to 'Modules/_stat.c')
-rw-r--r-- | Modules/_stat.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/_stat.c b/Modules/_stat.c index 402fbba..d003560 100644 --- a/Modules/_stat.c +++ b/Modules/_stat.c @@ -11,8 +11,14 @@ * */ +#ifndef _MSC_VER +#include "pyconfig.h" // Py_NOGIL +#endif + // Need limited C API version 3.13 for PyModule_Add() on Windows +#ifndef Py_NOGIL #define Py_LIMITED_API 0x030d0000 +#endif #include "Python.h" |