mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
obs-scripting: Add Py 3.8+ C-API changes
Closes obsproject/obs-studio#3689
This commit is contained in:
@@ -143,6 +143,13 @@ bool import_python(const char *python_path)
|
||||
IMPORT_FUNC(_Py_NoneStruct);
|
||||
IMPORT_FUNC(PyTuple_New);
|
||||
|
||||
#if defined(Py_DEBUG) || PY_VERSION_HEX >= 0x030900b0
|
||||
IMPORT_FUNC(_Py_Dealloc);
|
||||
#endif
|
||||
#if PY_VERSION_HEX >= 0x030900b0
|
||||
IMPORT_FUNC(PyType_GetFlags);
|
||||
#endif
|
||||
|
||||
#undef IMPORT_FUNC
|
||||
|
||||
success = true;
|
||||
|
||||
Reference in New Issue
Block a user