view plugins/perl/libgaimperl.c @ 13657:f9b24d282c91

[gaim-migrate @ 16059] The 'idle' boolean is now respected in gaim_presence_set_idle(); as per the documentation, 'idle_time' is ignored if 'idle' is FALSE. committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 18 Apr 2006 21:15:56 +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);
}