summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pikul.i4
1 files changed, 4 insertions, 0 deletions
diff --git a/pikul.i b/pikul.i
index 748edae..507491a 100644
--- a/pikul.i
+++ b/pikul.i
@@ -3,6 +3,8 @@
#include "pikul.h"
%}
+#ifdef SWIGPERL
+
%typemap(in) char *[] {
AV *tempav = (AV *)SvRV($input);
I32 len = av_len(tempav);
@@ -41,5 +43,7 @@
free($1);
}
+#endif
+
%rename("%(strip:[pikul_])s") "";
%include "pikul.h"