Mercurial > pidgin
view plugins/perl/libgaimperl.c @ 12682:d495909dcdc9
[gaim-migrate @ 15025]
Stop using __FUNCTION__. It's not standardized and does not exist on
Solaris. __func__ is specified in C99, but we try not to require C99.
See
http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Function-Names.html
for details.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 30 Dec 2005 19:33:48 +0000 |
parents | a4229dd9c76a |
children |
line wrap: on
line source
#include <gmodule.h> 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); }