mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-26 15:58:51 -04:00
obs-scripting: Fix macro redefinition warning
In Python 3.9+, `PyCFunction_New` and `PyCFunction_NewEx` are themselves macros around `PyMethod_New`. To fix the warning, both macros need to be untouched for those Python versions, instead the actual function `PyMethod_New` needs to be imported and aliased. This commit: - Adds the import of the `PyCMethod_New` symbol - Adds the function definition for `Import_PyCMethod_New` - Adds the `PyCMethod_New` function alias
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f