Skip to content

Commit

Permalink
gh-85283: _stat extension uses the limited C API
Browse files Browse the repository at this point in the history
The _stat C extension is now built with the limited C API.
  • Loading branch information
vstinner committed Aug 28, 2023
1 parent 4116592 commit e06a69a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The ``_stat`` C extension is now built with the :ref:`limited C API
+<limited-c-api>`. Patch by Victor Stinner.
2 changes: 2 additions & 0 deletions Modules/_stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
*
*/

#define Py_LIMITED_API 0x030d0000

#include "Python.h"

#ifdef __cplusplus
Expand Down

0 comments on commit e06a69a

Please sign in to comment.