diff options
author | Victor Stinner <vstinner@python.org> | 2023-07-02 16:37:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-02 16:37:37 (GMT) |
commit | bc7eb1708452da59c22782c487ae7f05f1788970 (patch) | |
tree | 9bed06f1ec6084183251579badf9d32ad332d866 /Modules/_winapi.c | |
parent | 9a51a419619bb9dd1075d683708c57803c5d48c7 (diff) | |
download | cpython-bc7eb1708452da59c22782c487ae7f05f1788970.zip cpython-bc7eb1708452da59c22782c487ae7f05f1788970.tar.gz cpython-bc7eb1708452da59c22782c487ae7f05f1788970.tar.bz2 |
gh-106320: Use _PyInterpreterState_GET() (#106336)
Replace PyInterpreterState_Get() with inlined
_PyInterpreterState_GET().
Diffstat (limited to 'Modules/_winapi.c')
-rw-r--r-- | Modules/_winapi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_winapi.c b/Modules/_winapi.c index a7e6bb5..d4291f5 100644 --- a/Modules/_winapi.c +++ b/Modules/_winapi.c @@ -36,6 +36,7 @@ #include "Python.h" #include "pycore_moduleobject.h" // _PyModule_GetState() +#include "pycore_pystate.h" // _PyInterpreterState_GET #include "structmember.h" // PyMemberDef @@ -133,7 +134,7 @@ overlapped_dealloc(OverlappedObject *self) { /* The operation is no longer pending -- nothing to do. */ } - else if (_Py_IsInterpreterFinalizing(PyInterpreterState_Get())) + else if (_Py_IsInterpreterFinalizing(_PyInterpreterState_GET())) { /* The operation is still pending -- give a warning. This will probably only happen on Windows XP. */ |