Mercurial > pidgin.yaz
diff src/plugin.h @ 5449:9442e8d0b21d
[gaim-migrate @ 5836]
Decklin Foster writes:
"this makes --enable-static-prpls compile again.
i'm so lazy. it's only been what, well over a week since the new plugin
api broke this? :) i'm not sure if everything here is "correct" but i'm
sure someone can look over it. mainly, because i made _load return TRUE
all the time, for the sake of consistency/completeness i changed the
other applicable functions to do so as well. my feeling is, the only
time these things are going to be called in the static case is from
static_proto_init (since there's no plugin UI or whatever) and therefore
they always "succeed".
oh, yeah, and someone please test it *without* static prpls turned on.
like i said, i'm lazy. :)"
it works for me with no static prpls.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 19 May 2003 17:27:03 +0000 |
parents | fd81a00480ac |
children | 5e7de337a053 |
line wrap: on
line diff
--- a/src/plugin.h Mon May 19 16:00:24 2003 +0000 +++ b/src/plugin.h Mon May 19 17:27:03 2003 +0000 @@ -117,7 +117,7 @@ /** * Handles the initialization of modules. */ -#ifdef STATIC_MODULE +#ifndef GAIM_PLUGINS # define GAIM_INIT_PLUGIN(pluginname, initfunc, plugininfo) \ gboolean gaim_init_##pluginname##_plugin(void) { \ GaimPlugin *plugin = gaim_plugin_new(TRUE, NULL); \ @@ -125,7 +125,7 @@ initfunc((plugin)); \ return gaim_plugin_register(plugin); \ } -#else /* if !STATIC_MODULE */ +#else /* GAIM_PLUGINS */ # define GAIM_INIT_PLUGIN(pluginname, initfunc, plugininfo) \ G_MODULE_EXPORT gboolean gaim_init_plugin(GaimPlugin *plugin) { \ plugin->info = &(plugininfo); \