diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-11-06 16:34:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-06 16:34:57 (GMT) |
commit | 836e0a75d565ecb7e2485fee88dbe67e649a1d5f (patch) | |
tree | 49a76a66d8be0ca382cb7146589f4154286c1994 | |
parent | c5063fd62a3fd3c5c2af33fc17c60fabe54282fe (diff) | |
download | cpython-836e0a75d565ecb7e2485fee88dbe67e649a1d5f.zip cpython-836e0a75d565ecb7e2485fee88dbe67e649a1d5f.tar.gz cpython-836e0a75d565ecb7e2485fee88dbe67e649a1d5f.tar.bz2 |
gh-111698: Restrict Py_mod_multiple_interpreters to 3.12+ Under Py_LIMITED_API (gh-111707)
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.)
-rw-r--r-- | Include/moduleobject.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/moduleobject.h b/Include/moduleobject.h index 52a47f1..42b87cc 100644 --- a/Include/moduleobject.h +++ b/Include/moduleobject.h @@ -73,7 +73,9 @@ struct PyModuleDef_Slot { #define Py_mod_create 1 #define Py_mod_exec 2 -#define Py_mod_multiple_interpreters 3 +#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 |