]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Add conditionals for swig perl bug workaround
authorMichael Schroeder <mls@suse.de>
Mon, 19 Jun 2017 09:09:43 +0000 (11:09 +0200)
committerMichael Schroeder <mls@suse.de>
Mon, 19 Jun 2017 09:09:43 +0000 (11:09 +0200)
It was fixed in swig-2.0.5 and gets in the way with newer perl
versions.

bindings/solv.i

index 043c549169b05338df6747ce7218bbf5d83b5929..354cde70e5f07eaaa129c580da0696514a442769 100644 (file)
@@ -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)