From: ellson Date: Tue, 9 Oct 2007 16:36:03 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: LAST_LIBGRAPH~32^2~5207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e5448c69313d03a0b727684f72c35559a828215;p=graphviz *** empty log message *** --- diff --git a/plugin/gd/gvdevice_gd.c b/plugin/gd/gvdevice_gd.c index 43fbd8a39..7ab745c08 100644 --- a/plugin/gd/gvdevice_gd.c +++ b/plugin/gd/gvdevice_gd.c @@ -20,20 +20,9 @@ #include "gvplugin_device.h" -#ifdef HAVE_PANGOCAIRO #ifdef HAVE_LIBGD #include "gd.h" -typedef enum { - FORMAT_GIF, - FORMAT_JPEG, - FORMAT_PNG, - FORMAT_WBMP, - FORMAT_GD, - FORMAT_GD2, - FORMAT_XBM, -} format_type; - extern size_t gvdevice_write(GVJ_t * job, const unsigned char * s, unsigned int len); int gvdevice_gd_putBuf (gdIOCtx *context, const void *buffer, int len) @@ -49,6 +38,17 @@ void gvdevice_gd_putC (gdIOCtx *context, int C) gvdevice_write((GVJ_t *)(context->tell), &c, 1); } +#ifdef HAVE_PANGOCAIRO +typedef enum { + FORMAT_GIF, + FORMAT_JPEG, + FORMAT_PNG, + FORMAT_WBMP, + FORMAT_GD, + FORMAT_GD2, + FORMAT_XBM, +} format_type; + static void gd_format(GVJ_t * job) { gdImagePtr im; @@ -168,8 +168,8 @@ static gvdevice_features_t device_features_gd_no_writer = { #endif gvplugin_installed_t gvdevice_gd_types[] = { -#ifdef HAVE_PANGOCAIRO #ifdef HAVE_LIBGD +#ifdef HAVE_PANGOCAIRO #ifdef HAVE_GD_GIF {FORMAT_GIF, "gif:cairo", 10, &gd_engine, &device_features_gd},