diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-03-23 11:41:09 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-03-23 11:41:09 +0100 |
commit | d9a4bdf6295196fbe1e02bf27a44a0acf21c6252 (patch) | |
tree | 72a96ea611c0401b3c9823ebf28d2aa74114ed87 /src/plugins/logger/logger.c | |
parent | 61ca92972886cd7a9bc301ae7e23d6dde74920bc (diff) | |
download | weechat-d9a4bdf6295196fbe1e02bf27a44a0acf21c6252.zip |
Check plugin version when loading it, to prevent crash when loading old plugins
Diffstat (limited to 'src/plugins/logger/logger.c')
-rw-r--r-- | src/plugins/logger/logger.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/logger/logger.c b/src/plugins/logger/logger.c index 4d12cddce..7951df9aa 100644 --- a/src/plugins/logger/logger.c +++ b/src/plugins/logger/logger.c @@ -19,8 +19,8 @@ /* logger.c: Logger plugin for WeeChat */ -#ifdef HAVE_CONFIG_H -#include "config.h" +#ifndef _GNU_SOURCE +#define _GNU_SOURCE 1 #endif #include <stdlib.h> @@ -42,7 +42,8 @@ WEECHAT_PLUGIN_NAME("logger"); WEECHAT_PLUGIN_DESCRIPTION("Logger plugin for WeeChat"); WEECHAT_PLUGIN_AUTHOR("FlashCode <flashcode@flashtux.org>"); -WEECHAT_PLUGIN_VERSION("0.1"); +WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); +WEECHAT_PLUGIN_WEECHAT_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE("GPL"); struct t_weechat_plugin *weechat_logger_plugin = NULL; |