diff lisp/progmodes/cc-langs.el @ 101271:c7dad4ac139c

(declare-function): Add compatibility stub. (delete-duplicates, mapcan, cl-macroexpand-all): Declare.
author Glenn Morris <rgm@gnu.org>
date Sat, 17 Jan 2009 20:02:41 +0000
parents 0685234e527d
children 4f3b9ebc200a
line wrap: on
line diff
--- a/lisp/progmodes/cc-langs.el	Sat Jan 17 20:01:17 2009 +0000
+++ b/lisp/progmodes/cc-langs.el	Sat Jan 17 20:02:41 2009 +0000
@@ -115,6 +115,10 @@
 
 ;;; Code:
 
+;; For Emacs < 22.2.
+(eval-and-compile
+  (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
+
 (eval-when-compile
   (let ((load-path
 	 (if (and (boundp 'byte-compile-dest-file)
@@ -204,6 +208,12 @@
 (def-edebug-spec c-lang-defvar
   (&define name def-form &optional stringp)) ;)
 
+;; Suppress "might not be defined at runtime" warning.
+;; This file is only used when compiling other cc files.
+(declare-function delete-duplicates "cl-seq" (cl-seq &rest cl-keys))
+(declare-function mapcan "cl-extra" (cl-func cl-seq &rest cl-rest))
+(declare-function cl-macroexpand-all "cl-extra" (form &optional env))
+
 (eval-and-compile
   ;; Some helper functions used when building the language constants.