# HG changeset patch # User Richard Laager # Date 1134076044 0 # Node ID a4229dd9c76ad7a45ef59bf7139712a9380e6ec6 # Parent d30c0a7a5619ddd7e56e6985d26ae0eaeaf24947 [gaim-migrate @ 14725] Prototype this ugly hack. committer: Tailor Script diff -r d30c0a7a5619 -r a4229dd9c76a plugins/perl/libgaimperl.c --- 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 -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); }