mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
obs-scripting: Fix loading of scripting libraries with runtime lookup
macOS uses runtime lookup for symbols in obs-scripting. While this guard fixes a compiler warning, it also leads to the `_PyCMethod_New` symbol being undefined. In turn any library linking with obs-scripting will then fail to load because of that undefined symbol. Removing this guard fixes that issue.
This commit is contained in:
parent
1604400e48
commit
a0923c9b6e
@ -193,9 +193,7 @@ extern bool import_python(const char *python_path);
|
||||
#define PyDict_New Import_PyDict_New
|
||||
#define PyDict_GetItemString Import_PyDict_GetItemString
|
||||
#define PyDict_SetItemString Import_PyDict_SetItemString
|
||||
#if PY_VERSION_HEX < 0x030900b0
|
||||
#define PyCFunction_NewEx Import_PyCFunction_NewEx
|
||||
#endif
|
||||
#define PyModule_GetDict Import_PyModule_GetDict
|
||||
#define PyModule_GetNameObject Import_PyModule_GetNameObject
|
||||
#define PyModule_AddObject Import_PyModule_AddObject
|
||||
|
Loading…
Reference in New Issue
Block a user