Skip to content

Commit

Permalink
pythongh-111698: Restrict Py_mod_multiple_interpreters to 3.12+ Under…
Browse files Browse the repository at this point in the history
… Py_LIMITED_API (pythongh-111707)

This should have been done in pythongh-104148.

(A similar fix has already be done for that slot's value macros, and backported to 3.12.  See pythongh-110968.)
  • Loading branch information
ericsnowcurrently authored and aisk committed Feb 11, 2024
1 parent d80cdec commit 7b8129e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Include/moduleobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b8129e

Please sign in to comment.