Mercurial > pidgin.yaz
comparison src/plugin.c @ 11378:3c88e4519fd1
[gaim-migrate @ 13604]
This will hopefully get CVS HEAD building in CC.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 30 Aug 2005 23:55:32 +0000 |
parents | bb0d7b719af2 |
children | d1d5f27de95d |
comparison
equal
deleted
inserted
replaced
11377:5c3a0e641520 | 11378:3c88e4519fd1 |
---|---|
210 if (plugin->native_plugin) { | 210 if (plugin->native_plugin) { |
211 const char *error; | 211 const char *error; |
212 /* | 212 /* |
213 * We pass G_MODULE_BIND_LOCAL here to prevent symbols from | 213 * We pass G_MODULE_BIND_LOCAL here to prevent symbols from |
214 * plugins being added to the global name space. | 214 * plugins being added to the global name space. |
215 * | |
216 * G_MODULE_BIND_LOCAL was added in glib 2.3.3. | |
217 * TODO: What are we going to do about that? | |
215 */ | 218 */ |
219 #if GLIB_CHECK_VERSION(2,3,3) | |
216 plugin->handle = g_module_open(filename, G_MODULE_BIND_LOCAL); | 220 plugin->handle = g_module_open(filename, G_MODULE_BIND_LOCAL); |
221 #else | |
222 plugin->handle = g_module_open(filename, 0); | |
223 #endif | |
217 | 224 |
218 if (plugin->handle == NULL) | 225 if (plugin->handle == NULL) |
219 { | 226 { |
220 error = g_module_error(); | 227 error = g_module_error(); |
221 gaim_debug_error("plugins", "%s is unloadable: %s\n", | 228 gaim_debug_error("plugins", "%s is unloadable: %s\n", |