aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2011-05-04 22:03:07 +0200
committerJuanma Barranquero2011-05-04 22:03:07 +0200
commit84d358f0d559acc398b019660c4a1a3a50fd6bb2 (patch)
tree591c9cb30d3cb80b0b202f1d5e415c878e793fb9 /src
parent9ed7c8cbcedaa50750bc1811bda2824e235787e8 (diff)
downloademacs-84d358f0d559acc398b019660c4a1a3a50fd6bb2.tar.gz
emacs-84d358f0d559acc398b019660c4a1a3a50fd6bb2.zip
Fix previous change: the library cache is defined in w32.c.
* image.c (CACHE_IMAGE_TYPE) [!HAVE_NTGUI]: Define to noop. (Finit_image_library): Wrap Vlibrary_cache on "#ifdef HAVE_NTGUI".
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/image.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9e1705339de..9ec8931822d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,11 @@
12011-05-04 Juanma Barranquero <lekktu@gmail.com> 12011-05-04 Juanma Barranquero <lekktu@gmail.com>
2 2
3 Fix previous change: the library cache is defined in w32.c.
4 * image.c (CACHE_IMAGE_TYPE) [!HAVE_NTGUI]: Define to noop.
5 (Finit_image_library): Wrap Vlibrary_cache on "#ifdef HAVE_NTGUI".
6
72011-05-04 Juanma Barranquero <lekktu@gmail.com>
8
3 Implement dynamic loading of GnuTLS on Windows. 9 Implement dynamic loading of GnuTLS on Windows.
4 10
5 * gnutls.h (GNUTLS_EMACS_ERROR_NOT_LOADED): New macro. 11 * gnutls.h (GNUTLS_EMACS_ERROR_NOT_LOADED): New macro.
diff --git a/src/image.c b/src/image.c
index 2377b41735d..d78b556d8c9 100644
--- a/src/image.c
+++ b/src/image.c
@@ -584,9 +584,12 @@ static void x_laplace (struct frame *, struct image *);
584static void x_emboss (struct frame *, struct image *); 584static void x_emboss (struct frame *, struct image *);
585static int x_build_heuristic_mask (struct frame *, struct image *, 585static int x_build_heuristic_mask (struct frame *, struct image *,
586 Lisp_Object); 586 Lisp_Object);
587 587#ifdef HAVE_NTGUI
588#define CACHE_IMAGE_TYPE(type, status) \ 588#define CACHE_IMAGE_TYPE(type, status) \
589 do { Vlibrary_cache = Fcons (Fcons (type, status), Vlibrary_cache); } while (0) 589 do { Vlibrary_cache = Fcons (Fcons (type, status), Vlibrary_cache); } while (0)
590#else
591#define CACHE_IMAGE_TYPE(type, status)
592#endif
590 593
591#define ADD_IMAGE_TYPE(type) \ 594#define ADD_IMAGE_TYPE(type) \
592 do { Vimage_types = Fcons (type, Vimage_types); } while (0) 595 do { Vimage_types = Fcons (type, Vimage_types); } while (0)
@@ -8601,10 +8604,12 @@ of `dynamic-library-alist', which see). */)
8601{ 8604{
8602 Lisp_Object tested; 8605 Lisp_Object tested;
8603 8606
8607#ifdef HAVE_NTGUI
8604 /* Don't try to reload the library. */ 8608 /* Don't try to reload the library. */
8605 tested = Fassq (type, Vlibrary_cache); 8609 tested = Fassq (type, Vlibrary_cache);
8606 if (CONSP (tested)) 8610 if (CONSP (tested))
8607 return XCDR (tested); 8611 return XCDR (tested);
8612#endif
8608 8613
8609#if defined (HAVE_XPM) || defined (HAVE_NS) 8614#if defined (HAVE_XPM) || defined (HAVE_NS)
8610 if (EQ (type, Qxpm)) 8615 if (EQ (type, Qxpm))