Browse Source

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.
PatTheMav 3 years ago
parent
commit
a0923c9b6e
1 changed files with 0 additions and 2 deletions
  1. 0 2
      deps/obs-scripting/obs-scripting-python-import.h

+ 0 - 2
deps/obs-scripting/obs-scripting-python-import.h

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