Mercurial > pidgin.yaz
changeset 12418:a4229dd9c76a
[gaim-migrate @ 14725]
Prototype this ugly hack.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 08 Dec 2005 21:07:24 +0000 |
parents | d30c0a7a5619 |
children | 455610a80747 |
files | plugins/perl/libgaimperl.c |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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); }