So, I'm trying to backport GTK2 from 7.7 cvs to 7.6.64 (also 7.6.50),
and it won't load the image_module in global.pre, INIT{}:
INIT {
#ifdef DYNAMIC_MODULE
image_color_program = PIKE_MODULE_IMPORT(Image, image_color_program);
if(!image_color_program)
Pike_error("Could not load Image module.\n");
image_program = PIKE_MODULE_IMPORT(Image, image_program);
if(!image_program)
Pike_error("Could not load Image module.\n");
#endif
}
It apparently works with 7.7, but not 7.6. Did something change with
dynamic module loading?
What should I do instead? I noticed in some other modules it used
SAFE_APPLY_MASTER() and a bunch of other statements...