From: Michael Schroeder Date: Mon, 19 Jun 2017 09:09:43 +0000 (+0200) Subject: Add conditionals for swig perl bug workaround X-Git-Tag: 0.6.28~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75fa844d8c3658c01b286f5c72d87fce373cfe0b;p=thirdparty%2Flibsolv.git Add conditionals for swig perl bug workaround It was fixed in swig-2.0.5 and gets in the way with newer perl versions. --- diff --git a/bindings/solv.i b/bindings/solv.i index 043c5491..354cde70 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -330,7 +330,8 @@ typedef struct { #if defined(SWIGPERL) -/* work around a swig bug */ +/* work around a swig bug for swig versions < 2.0.5 */ +#if SWIG_VERSION < 0x020005 %{ #undef SWIG_CALLXS #ifdef PERL_OBJECT @@ -343,6 +344,7 @@ typedef struct { # endif #endif %} +#endif %define perliter(class)