bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. (GH-10620)

This commit is contained in:
Arthur Neufeld 2018-12-20 15:11:03 -06:00 committed by Serhiy Storchaka
parent 9a8d1d7562
commit 3e8f962e63
2 changed files with 4 additions and 0 deletions

View File

@ -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 */

View File

@ -0,0 +1,2 @@
Conditionally declare :c:func:`Py_FinalizeEx()` (new in 3.6) based on
Py_LIMITED_API. Patch by Arthur Neufeld.