#include <libgnomecanvas/libgnomecanvas.h>
#include <gtk/gtkenums.h>
+
+extern "C" {
+/* some versions of libart contain functions not inside an extern C block */
#include <libart_lgpl/art_misc.h>
+}
#include <libart_lgpl/art_pixbuf.h>
return 0;
}
- savergb = rgb = (unsigned char*)art_alloc (h * w * 3);
+ savergb = rgb = (unsigned char*) malloc (h * w * 3);
// LOAD XPM COLORMAP LONG ENOUGH TO DO CONVERSION
for (t = 0; t < colors; ++t) {
return 0;
}
- savergb = rgb = (unsigned char*)art_alloc (h * w * 4);
+ savergb = rgb = (unsigned char*) malloc (h * w * 4);
// LOAD XPM COLORMAP LONG ENOUGH TO DO CONVERSION