diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-09-20 11:05:48 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-09-20 11:05:48 +0200 |
commit | 6860aa491f3462c48c907e78ac259405b3db6d40 (patch) | |
tree | a5dc200e18edad1fcddd77321abe70fb5850e98d /src/plugins | |
parent | 6a118ce9402083c74d246f7a24e1592a7cac8d3f (diff) | |
download | weechat-6860aa491f3462c48c907e78ac259405b3db6d40.zip |
aspell: fix compilation with enchant version older than 1.6.0 (closes #192)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/aspell/weechat-aspell.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/aspell/weechat-aspell.c b/src/plugins/aspell/weechat-aspell.c index 646fa24f7..0e34cb669 100644 --- a/src/plugins/aspell/weechat-aspell.c +++ b/src/plugins/aspell/weechat-aspell.c @@ -1002,15 +1002,19 @@ weechat_aspell_debug_libs_cb (void *data, const char *signal, (void) signal_data; #ifdef USE_ENCHANT +#ifdef HAVE_ENCHANT_GET_VERSION weechat_printf (NULL, " %s: enchant %s", ASPELL_PLUGIN_NAME, enchant_get_version ()); #else + weechat_printf (NULL, " %s: enchant (?)", ASPELL_PLUGIN_NAME); +#endif /* HAVE_ENCHANT_GET_VERSION */ +#else #ifdef HAVE_ASPELL_VERSION_STRING weechat_printf (NULL, " %s: aspell %s", ASPELL_PLUGIN_NAME, aspell_version_string ()); #else weechat_printf (NULL, " %s: aspell (?)", ASPELL_PLUGIN_NAME); -#endif +#endif /* HAVE_ASPELL_VERSION_STRING */ #endif /* USE_ENCHANT */ return WEECHAT_RC_OK; |