From 652653ff8201d61cb3d9d019a7b6f8da3daf9850 Mon Sep 17 00:00:00 2001 From: stfn Date: Sat, 9 Nov 2013 13:47:13 +0100 Subject: [PATCH] api: add support for C++ plugins --- ChangeLog | 1 + src/plugins/weechat-plugin.h | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2a10d0834..d07e93f29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -27,6 +27,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] * core: fix truncated prefix when filters are toggled (bug #40204) * core: add options to customize default text search in buffers: weechat.look.buffer_search_{case_sensitive|force_default|regex|where} +* api: add support for C++ plugins * api: fix read of arrays in hdata functions hdata_ (bug #40354) * irc: fix groups in channel nicklist when reconnecting to a server that supports more nick prefixes than the previously connected server diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h index ed04a7532..bae63805f 100644 --- a/src/plugins/weechat-plugin.h +++ b/src/plugins/weechat-plugin.h @@ -22,6 +22,10 @@ #ifndef __WEECHAT_WEECHAT_PLUGIN_H #define __WEECHAT_WEECHAT_PLUGIN_H 1 +#ifdef __cplusplus +extern "C" { +#endif + #include /* some systems like GNU/Hurd do not define PATH_MAX */ @@ -1722,4 +1726,8 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin); #define weechat_upgrade_close(__upgrade_file) \ weechat_plugin->upgrade_close(__upgrade_file) +#ifdef __cplusplus +} +#endif + #endif /* __WEECHAT_WEECHAT_PLUGIN_H */