]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Cairo build without PNG
authorEli Zaretskii <eliz@gnu.org>
Mon, 27 Jul 2015 12:32:18 +0000 (15:32 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 27 Jul 2015 12:32:18 +0000 (15:32 +0300)
* src/image.c: Define PNG function when USE_CAIRO is defined, even
if HAVE_PNG is not.  (Bug#21133)

src/image.c

index cf96cae038500f81bae2cff877f17658c1db7c13..066db74f786b659b6804ebb97295d80a82f10d10 100644 (file)
@@ -5642,7 +5642,7 @@ png_image_p (Lisp_Object object)
 #endif /* HAVE_PNG || HAVE_NS || USE_CAIRO */
 
 
-#if defined HAVE_PNG && !defined HAVE_NS
+#if (defined HAVE_PNG && !defined HAVE_NS) || defined USE_CAIRO
 
 # ifdef WINDOWSNT
 /* PNG library details.  */