changeset 95815:83390f49235e

(declare-function): Add compat definition. (image-size): Declare.
author Glenn Morris <rgm@gnu.org>
date Wed, 11 Jun 2008 03:11:14 +0000
parents eb119cbc1715
children 23d8c6097dcd
files lisp/gnus/gnus-picon.el
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/gnus-picon.el	Wed Jun 11 03:10:59 2008 +0000
+++ b/lisp/gnus/gnus-picon.el	Wed Jun 11 03:11:14 2008 +0000
@@ -38,6 +38,10 @@
 ;;
 ;;; Code:
 
+;; For Emacs < 22.2.
+(eval-and-compile
+  (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
+
 (eval-when-compile (require 'cl))
 
 (require 'gnus)
@@ -165,6 +169,8 @@
 
 ;;; Functions that does picon transformations:
 
+(declare-function image-size "image.c" (spec &optional pixels frame))
+
 (defun gnus-picon-transform-address (header category)
   (gnus-with-article-headers
    (let ((addresses