Mercurial > pidgin
view libpurple/plugins/perl/libpurpleperl.c @ 26198:e1b91b7b5f69
merge of '7829ec76bdb008583f8da54e238c2265a1140db2'
and 'e10c42213b8452c2fd4906e4ca501ef3eb83bd69'
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Fri, 20 Mar 2009 05:46:04 +0000 |
parents | c6e563dfaa7a |
children |
line wrap: on
line source
#include <gmodule.h> #ifdef __SUNPRO_C #pragma init (my_init) void my_init(void); void my_init() { #else void __attribute__ ((constructor)) my_init(void); void __attribute__ ((constructor)) my_init() { #endif /* 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); }