]> granicus.if.org Git - graphviz/commitdiff
fix #1210 I hope.
authorellson <devnull@localhost>
Fri, 19 Oct 2007 17:33:50 +0000 (17:33 +0000)
committerellson <devnull@localhost>
Fri, 19 Oct 2007 17:33:50 +0000 (17:33 +0000)
contrib/diffimg/diffimg.c

index a0ddb345f48a2097fa3d79281328089868bc7f0e..9e5e99153b7e1c62ac7e5303ffbf094d7a85cad4 100644 (file)
@@ -116,6 +116,9 @@ static gdImagePtr imageLoad (char *filename)
 #endif
     }
     else if (strcasecmp(ext, ".jpg") == 0) {
+#ifndef HAVE_HAVE_LIBJPEG
+#undef HAVE_GD_JPEG
+#endif
 #ifdef HAVE_GD_JPEG
         im = gdImageCreateFromJpeg(f);
 #else