aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2011-05-10 12:31:33 +0200
committerJuanma Barranquero2011-05-10 12:31:33 +0200
commit2f142cc515f795f22c96464d97b28a7d8226c578 (patch)
tree97a5e127537d13b3006de3711f142cc317cff170 /src
parentb8bd6c8db8b1bb0b38c0827ecc7029521087470e (diff)
downloademacs-2f142cc515f795f22c96464d97b28a7d8226c578.tar.gz
emacs-2f142cc515f795f22c96464d97b28a7d8226c578.zip
src/image.c (Finit_image_library): Return t for built-in image types (bug#8640).
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/image.c10
2 files changed, 11 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6f70908caae..f7010859baa 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12011-05-10 Juanma Barranquero <lekktu@gmail.com>
2
3 * image.c (Finit_image_library): Return t for built-in image types,
4 like pbm and xbm. (Bug#8640)
5
12011-05-09 Andreas Schwab <schwab@linux-m68k.org> 62011-05-09 Andreas Schwab <schwab@linux-m68k.org>
2 7
3 * w32menu.c (set_frame_menubar): Fix submenu allocation. 8 * w32menu.c (set_frame_menubar): Fix submenu allocation.
diff --git a/src/image.c b/src/image.c
index 747142635af..23da03b6264 100644
--- a/src/image.c
+++ b/src/image.c
@@ -8609,6 +8609,10 @@ of `dynamic-library-alist', which see). */)
8609 return XCDR (tested); 8609 return XCDR (tested);
8610#endif 8610#endif
8611 8611
8612 /* Types pbm and xbm are built-in and always available. */
8613 if (EQ (type, Qpbm) || EQ (type, Qxbm))
8614 return Qt;
8615
8612#if defined (HAVE_XPM) || defined (HAVE_NS) 8616#if defined (HAVE_XPM) || defined (HAVE_NS)
8613 if (EQ (type, Qxpm)) 8617 if (EQ (type, Qxpm))
8614 return CHECK_LIB_AVAILABLE (&xpm_type, init_xpm_functions, libraries); 8618 return CHECK_LIB_AVAILABLE (&xpm_type, init_xpm_functions, libraries);
@@ -8641,10 +8645,8 @@ of `dynamic-library-alist', which see). */)
8641 8645
8642#if defined (HAVE_IMAGEMAGICK) 8646#if defined (HAVE_IMAGEMAGICK)
8643 if (EQ (type, Qimagemagick)) 8647 if (EQ (type, Qimagemagick))
8644 { 8648 return CHECK_LIB_AVAILABLE (&imagemagick_type, init_imagemagick_functions,
8645 return CHECK_LIB_AVAILABLE (&imagemagick_type, init_imagemagick_functions, 8649 libraries);
8646 libraries);
8647 }
8648#endif 8650#endif
8649 8651
8650#ifdef HAVE_GHOSTSCRIPT 8652#ifdef HAVE_GHOSTSCRIPT