view libpurple/plugins/perl/libgaimperl.c @ 15432:8a7709e2ed9f

protocol icons. No code to use them yet.
author Sean Egan <seanegan@gmail.com>
date Sat, 27 Jan 2007 03:30:08 +0000
parents 5fe8042783c1
children d66e491976af
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);
}