1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 20:36:38 +02:00

Fixed perl plugin compilation with old gcc versions

This commit is contained in:
Sebastien Helleu
2008-04-23 10:26:41 +02:00
parent 06fd80e210
commit a6dfefacfe
+7 -5
View File
@@ -293,18 +293,20 @@ weechat_perl_load (char *filename)
weechat_gettext ("%s%s: unable to parse file "
"\"%s\""),
weechat_prefix ("error"), "perl", filename);
weechat_printf (NULL,
#ifdef MULTIPLICITY
weechat_printf (NULL,
weechat_gettext ("%s%s: error: %s"),
weechat_prefix ("error"), "perl",
#ifdef MULTIPLICITY
SvPV(perl_get_sv("weechat_perl_load_eval_file_error",
FALSE), len)
FALSE), len));
#else
weechat_printf (NULL,
weechat_gettext ("%s%s: error: %s"),
weechat_prefix ("error"), "perl",
SvPV(perl_get_sv("WeechatPerlScriptLoader::"
"weechat_perl_load_eval_file_error",
FALSE), len)
FALSE), len));
#endif
);
}
else if (*eval == 1)
{