#include <string.h> /* memcpy, memset */
#include <cairo.h>
-#include <gdk/gdk.h>
#include <gdk-pixbuf/gdk-pixbuf.h> /* includes glib.h */
#include <glib/gprintf.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <svgtiny.h>
+/* This "header" includes extra code that we've copy/pasted from GDK */
+#include "gdk_pixbuf_get_from_surface.h"
+
/*
* The width and height of the viewport that we'll render the SVG
* into. The final "picture" may not actually be this size; based on