bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. (GH-10620)
This commit is contained in:
parent
9a8d1d7562
commit
3e8f962e63
|
@ -12,7 +12,9 @@ extern "C" {
|
|||
PyAPI_FUNC(void) Py_Initialize(void);
|
||||
PyAPI_FUNC(void) Py_InitializeEx(int);
|
||||
PyAPI_FUNC(void) Py_Finalize(void);
|
||||
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03060000
|
||||
PyAPI_FUNC(int) Py_FinalizeEx(void);
|
||||
#endif
|
||||
PyAPI_FUNC(int) Py_IsInitialized(void);
|
||||
|
||||
/* Subinterpreter support */
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Conditionally declare :c:func:`Py_FinalizeEx()` (new in 3.6) based on
|
||||
Py_LIMITED_API. Patch by Arthur Neufeld.
|
Loading…
Reference in New Issue