diff --git a/Include/moduleobject.h b/Include/moduleobject.h index 1717eb352d2a4d..354d133e45ee70 100644 --- a/Include/moduleobject.h +++ b/Include/moduleobject.h @@ -78,7 +78,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