plugins/perl/libgaimperl.c

changeset 12418
77abb6df8ee6
parent 11862
5d4bc6d54688
--- a/plugins/perl/libgaimperl.c	Thu Dec 08 21:07:09 2005 +0000
+++ b/plugins/perl/libgaimperl.c	Thu Dec 08 21:07:24 2005 +0000
@@ -1,7 +1,9 @@
 #include <gmodule.h>
-void __attribute__ ((constructor)) my_init(void) {
-	/* Very evil hack...puts perl.so's symbols in the global table 		*/
-	/* but does not create a circular dependancy because g_module_open	*/
-	/* will only open the library once.					*/
+void __attribute__ ((constructor)) my_init(void);
+
+void __attribute__ ((constructor)) my_init() {
+	/* Very evil hack...puts perl.so's symbols in the global table
+	 * but does not create a circular dependancy because g_module_open
+	 * will only open the library once. */
 	g_module_open("perl.so", 0);
 }

mercurial