summaryrefslogtreecommitdiff
path: root/swig
diff options
context:
space:
mode:
authortux <tux@linux-hmt5.(none)>2012-02-24 19:31:40 +0100
committertux <tux@linux-hmt5.(none)>2012-02-24 19:31:40 +0100
commita628a22c778353c870c621b291f28e22866948de (patch)
tree009e3aedddbe119d156fdf58d3b35f3c21c0fd28 /swig
parent2e4f52fc9f3612a35e7ebb917fa8fe4109500565 (diff)
downloadlibzypp-bindings-a628a22c778353c870c621b291f28e22866948de.tar.gz
libzypp-bindings-a628a22c778353c870c621b291f28e22866948de.tar.bz2
libzypp-bindings-a628a22c778353c870c621b291f28e22866948de.zip
fix build for perl to handle also callback symbols there
Diffstat (limited to 'swig')
-rw-r--r--swig/Callbacks.i18
1 files changed, 10 insertions, 8 deletions
diff --git a/swig/Callbacks.i b/swig/Callbacks.i
index 12c28a1..e66bd0f 100644
--- a/swig/Callbacks.i
+++ b/swig/Callbacks.i
@@ -34,6 +34,8 @@ static Target_Type action_abort()
if (value == Qnil)
value = ID2SYM(rb_intern("abort"));
return value;
+#else
+ return Target_String("abort");
#endif
}
@@ -44,6 +46,8 @@ static Target_Type action_retry()
if (value == Qnil)
value = ID2SYM(rb_intern("retry"));
return value;
+#else
+ return Target_String("retry");
#endif
}
@@ -54,6 +58,8 @@ static Target_Type action_ignore()
if (value == Qnil)
value = ID2SYM(rb_intern("ignore"));
return value;
+#else
+ return Target_String("ignore");
#endif
}
@@ -70,8 +76,7 @@ static Target_Type error_no_error()
if (value == Qnil)
value = ID2SYM(rb_intern("no_error"));
return value;
-#endif
-#if defined(SWIGPYTHON)
+#else
return Target_String("no_error");
#endif
}
@@ -83,8 +88,7 @@ static Target_Type error_not_found()
if (value == Qnil)
value = ID2SYM(rb_intern("not_found"));
return value;
-#endif
-#if defined(SWIGPYTHON)
+#else
return Target_String("not_found");
#endif
}
@@ -96,8 +100,7 @@ static Target_Type error_io()
if (value == Qnil)
value = ID2SYM(rb_intern("io"));
return value;
-#endif
-#if defined(SWIGPYTHON)
+#else
return Target_String("io");
#endif
}
@@ -109,8 +112,7 @@ static Target_Type error_invalid()
if (value == Qnil)
value = ID2SYM(rb_intern("invalid"));
return value;
-#endif
-#if defined(SWIGPYTHON)
+#else
return Target_String("invalid");
#endif
}