changeset 2802:c799098c396f trunk

[svn] - guard v2 module header with G_BEGIN_DECLS and G_END_DECLS
author nenolod
date Thu, 24 May 2007 16:17:12 -0700
parents 8ab12f092722
children 2d915b3e3e52
files ChangeLog src/audacious/build_stamp.c src/audacious/plugin.h
diffstat 3 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu May 24 15:47:58 2007 -0700
+++ b/ChangeLog	Thu May 24 16:17:12 2007 -0700
@@ -1,3 +1,11 @@
+2007-05-24 22:47:58 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [4628]
+  - extended compatibility with v1 API
+  
+  trunk/src/audacious/pluginenum.c |    4 ++++
+  1 file changed, 4 insertions(+)
+
+
 2007-05-24 11:50:48 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
   revision [4626]
   - hide 'error' from outside to avoid symbol conflict.
--- a/src/audacious/build_stamp.c	Thu May 24 15:47:58 2007 -0700
+++ b/src/audacious/build_stamp.c	Thu May 24 16:17:12 2007 -0700
@@ -1,2 +1,2 @@
 #include <glib.h>
-const gchar *svn_stamp = "20070524-4626";
+const gchar *svn_stamp = "20070524-4628";
--- a/src/audacious/plugin.h	Thu May 24 15:47:58 2007 -0700
+++ b/src/audacious/plugin.h	Thu May 24 16:17:12 2007 -0700
@@ -106,12 +106,14 @@
 #define PLUGIN_MAGIC 0x8EAC8DE2
 
 #define DECLARE_PLUGIN(name, init, fini, ip_list, op_list, ep_list, gp_list, vp_list) \
+	G_BEGIN_DECLS \
 	static PluginHeader _pluginInfo = { PLUGIN_MAGIC, __AUDACIOUS_PLUGIN_API__, \
 		#name, init, fini, NULL, ip_list, op_list, ep_list, gp_list, \
 		vp_list }; \
 	PluginHeader *get_plugin_info(void) { \
 		return &_pluginInfo; \
-	}
+	} \
+	G_END_DECLS
 
 /* Sadly, this is the most we can generalize out of the disparate
    plugin structs usable with typecasts - descender */