mirror of
https://github.com/python/cpython.git
synced 2025-09-25 01:43:11 +00:00
[3.12] gh-111698: Restrict Py_mod_multiple_interpreters to 3.12+ Under Py_LIMITED_API (gh-111707) (gh-111787)
This should have been done in gh-104148.
(A similar fix has already be done for that slot's value macros, and backported to 3.12. See gh-110968.)
(cherry picked from commit 836e0a75d5
)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
This commit is contained in:
parent
0aceac557d
commit
f7251e2af3
1 changed files with 3 additions and 1 deletions
|
@ -78,7 +78,9 @@ struct PyModuleDef_Slot {
|
|||
|
||||
#define Py_mod_create 1
|
||||
#define Py_mod_exec 2
|
||||
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030c0000
|
||||
# define Py_mod_multiple_interpreters 3
|
||||
#endif
|
||||
|
||||
#ifndef Py_LIMITED_API
|
||||
#define _Py_mod_LAST_SLOT 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue