]> granicus.if.org Git - graphviz/commitdiff
gdImageCreateFromGd2Part depends on HAVE_LIBZ
authorellson <devnull@localhost>
Tue, 18 Oct 2005 21:10:43 +0000 (21:10 +0000)
committerellson <devnull@localhost>
Tue, 18 Oct 2005 21:10:43 +0000 (21:10 +0000)
lib/gd/gdparttopng.c

index ecac9a267c7b1cd27cdcc63a8bd7813693af3379..0ce55f29a847cbdff704d8563aa5db67a65bf862 100644 (file)
@@ -39,7 +39,11 @@ main (int argc, char **argv)
 
   printf ("Extracting from (%d, %d), size is %dx%d\n", x, y, w, h);
 
+#if HAVE_LIBZ
   im = gdImageCreateFromGd2Part (in, x, y, w, h);
+#else
+  im = NULL;
+#endif
   fclose (in);
   if (!im)
     {