Skip to content

Commit 8830cc1

Browse files
committed
Need limited C API version 3.7 for PyImport_GetModule()
1 parent 36b7e6c commit 8830cc1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Modules/_testlimitedcapi/import.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// Need limited C API version 3.7 for PyImport_GetModule()
2+
#include "pyconfig.h" // Py_GIL_DISABLED
3+
#if !defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API)
4+
# define Py_LIMITED_API 0x030d0000
5+
#endif
6+
17
#include "parts.h"
28
#include "util.h"
39

0 commit comments

Comments
 (0)