From 6a2bef6fb7f7f9a675d94230785cf644b2661644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 20 Sep 2014 15:43:29 +0200 Subject: guile: fix compilation with Guile < 2.0.4 (closes #198) --- src/plugins/guile/weechat-guile.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/plugins') diff --git a/src/plugins/guile/weechat-guile.c b/src/plugins/guile/weechat-guile.c index 155f88393..7d4304d9f 100644 --- a/src/plugins/guile/weechat-guile.c +++ b/src/plugins/guile/weechat-guile.c @@ -19,6 +19,10 @@ * along with WeeChat. If not, see . */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #undef _ #include @@ -971,12 +975,14 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) guile_stdout = NULL; +#ifdef HAVE_GUILE_GMP_MEMORY_FUNCTIONS /* * prevent guile to use its own gmp allocator, because it can conflict * with other plugins using GnuTLS like relay, which can crash WeeChat * on unload (or exit) */ scm_install_gmp_memory_functions = 0; +#endif scm_init_guile (); -- cgit v1.2.3