From: Michael Schroeder Date: Tue, 13 Feb 2024 15:13:52 +0000 (+0100) Subject: fix last commit X-Git-Tag: 0.7.29~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e0d0438e5c48f222838c50a67b7b099ada1d0614;p=thirdparty%2Flibsolv.git fix last commit Swig is weird. --- diff --git a/bindings/solv.i b/bindings/solv.i index 02831cf1..372c862a 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -1729,11 +1729,11 @@ returnself(matchsolvable) SWIGINTERN int loadcallback(Pool *pool, Repodata *data, void *d) { XRepodata *xd = new_XRepodata(data->repo, data->repodataid); PyObject *args = Py_BuildValue("(O)", SWIG_NewPointerObj(SWIG_as_voidptr(xd), SWIGTYPE_p_XRepodata, SWIG_POINTER_OWN | 0)); -%#if PY_VERSION_HEX >= 0x03000000 +#if PY_VERSION_HEX >= 0x03000000 PyObject *result = PyObject_Call((PyObject *)d, args, NULL); -%#else +#else PyObject *result = PyEval_CallObject((PyObject *)d, args); -%#endif +#endif int ecode = 0; int vresult = 0;