changeset 21512:166b7949be3d

Compile when plugins are disabled
author Mark Doliner <mark@kingant.net>
date Wed, 14 Nov 2007 23:09:03 +0000
parents 9090555d7ad9
children 7a9b8bd09a05
files libpurple/plugin.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugin.c	Wed Nov 14 20:25:27 2007 +0000
+++ b/libpurple/plugin.c	Wed Nov 14 23:09:03 2007 +0000
@@ -763,10 +763,12 @@
 void
 purple_plugin_disable(PurplePlugin *plugin)
 {
+#ifdef PURPLE_PLUGINS
 	g_return_if_fail(plugin != NULL);
 
 	if (!g_list_find(plugins_to_disable, plugin))
 		plugins_to_disable = g_list_prepend(plugins_to_disable, plugin);
+#endif
 }
 
 gboolean