mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 15:26:37 +02:00
api: add support for C++ plugins
This commit is contained in:
@@ -22,6 +22,10 @@
|
||||
#ifndef __WEECHAT_WEECHAT_PLUGIN_H
|
||||
#define __WEECHAT_WEECHAT_PLUGIN_H 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
/* 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 */
|
||||
|
||||
Reference in New Issue
Block a user