Mercurial > pidgin.yaz
view libpurple/plugins/perl/libpurpleperl.c @ 29241:214357c85418
*** Plucked rev 941f01ed2234f8e476b7260fbd6ea873583387f7 (f05c54b03e6bbfdbff38c01697fbd353a969e05e):
jabber: Complete the fix for a NULL printf() on registration on Windows. Closes #10420 again.
Man, do I hate these NULL printf() bugs.
*** Plucked rev 1cebb8e5585732c30dcfb31a6700dcb78ae47b44 (f05c54b03e6bbfdbff38c01697fbd353a969e05e):
Changelog that.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 07 Jan 2010 23:41:17 +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); }