pidgin: 65e73f7e: Allow macros in the plugin name when com...

evands at pidgin.im evands at pidgin.im
Tue Jul 15 13:25:50 EDT 2008


-----------------------------------------------------------------
Revision: 65e73f7e533081f8384902e8722f0a09beb77e60
Ancestor: aa1091727852b14118b50e7b20134127c4bf09d3
Author: evands at pidgin.im
Date: 2008-07-15T17:21:17
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/65e73f7e533081f8384902e8722f0a09beb77e60

Modified files:
        libpurple/plugin.h

ChangeLog: 

Allow macros in the plugin name when compiling statically.
Patch from Felipe Contreras.
Reference: http://tinyurl.com/5ceegl

-------------- next part --------------
============================================================
--- libpurple/plugin.h	f9b57bb6bf0f80363f338ee05935b0f826e20930
+++ libpurple/plugin.h	33d560f93a89304a04c7114dad6396ac8ffd2780
@@ -199,9 +199,10 @@ struct _PurplePluginAction {
  * Handles the initialization of modules.
  */
 #if !defined(PURPLE_PLUGINS) || defined(PURPLE_STATIC_PRPL)
+# define _FUNC_NAME(x) purple_init_##x##_plugin
 # define PURPLE_INIT_PLUGIN(pluginname, initfunc, plugininfo) \
-	gboolean purple_init_##pluginname##_plugin(void);\
-	gboolean purple_init_##pluginname##_plugin(void) { \
+	gboolean _FUNC_NAME(pluginname)(void);\
+	gboolean _FUNC_NAME(pluginname)(void) { \
 		PurplePlugin *plugin = purple_plugin_new(TRUE, NULL); \
 		plugin->info = &(plugininfo); \
 		initfunc((plugin)); \


More information about the Commits mailing list