Skip to content

Commit

Permalink
Need limited C API version 3.7 for PyImport_GetModule()
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Jan 16, 2025
1 parent 36b7e6c commit 8830cc1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Modules/_testlimitedcapi/import.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Need limited C API version 3.7 for PyImport_GetModule()
#include "pyconfig.h" // Py_GIL_DISABLED
#if !defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API)
# define Py_LIMITED_API 0x030d0000
#endif

#include "parts.h"
#include "util.h"

Expand Down

0 comments on commit 8830cc1

Please sign in to comment.