Only emulate Py_FinalizeEx for Python 3.[0-5].

This commit is contained in:
Todd C. Miller
2022-01-12 13:07:21 -07:00
parent 1f098a2029
commit 853e710f4a

View File

@@ -38,7 +38,7 @@ static size_t python_inittab_copy_len = 0;
#endif #endif
/* Py_FinalizeEx is new in version 3.6 */ /* Py_FinalizeEx is new in version 3.6 */
#if PY_MAJOR_VERSION > 3 || PY_MINOR_VERSION < 6 #if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION < 6
# define Py_FinalizeEx() (Py_Finalize(), 0) # define Py_FinalizeEx() (Py_Finalize(), 0)
#endif #endif