view plugins/perl/libgaimperl.c @ 12846:95d350f56998

[gaim-migrate @ 15194] A patch from Bj??rn Voigt to make sure the usage info is printed out in the correct localization: "There is a small i18n problem in src/gtkmain.c. Unlike Gaim oldstatus, the new code calls show_usage() before gtk_init_check(). This means that, setlocale() is not called and the usage message is English." committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 12 Jan 2006 04:03:39 +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);
}