Created
June 28, 2017 17:33
-
-
Save tonylambiris/8a4674c6f0619d5dc516430e95a53e99 to your computer and use it in GitHub Desktop.
Add conditionals for swig perl bug workaround patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment