]> git.eshelyaron.com Git - emacs.git/commitdiff
* ftfont.c (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 19 Mar 2011 04:56:15 +0000 (21:56 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 19 Mar 2011 04:56:15 +0000 (21:56 -0700)
(OTF_TAG_SYM): Omit macro if not needed.

src/ChangeLog
src/ftfont.c

index 26833532ca4496c86c8b9e744dd8c319f23a8585..6ad69b657b865ff28048309dfd6067a348601f85 100644 (file)
@@ -1,6 +1,8 @@
 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
 
        * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness.
+       (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
+       (OTF_TAG_SYM): Omit macro if not needed.
 
        * xfont.c (xfont_list_family): Mark var as initialized.
 
index 0c3e7bb6428ba33d76608b45eea18b3c6bff4e4e..5decec16825624182d0e4b2b4af458c4934ed609 100644 (file)
@@ -491,8 +491,12 @@ static int ftfont_get_bitmap (struct font *, unsigned,
                               struct font_bitmap *, int);
 static int ftfont_anchor_point (struct font *, unsigned, int,
                                 int *, int *);
+#ifdef HAVE_LIBOTF
 static Lisp_Object ftfont_otf_capability (struct font *);
+# ifdef HAVE_M17N_FLT
 static Lisp_Object ftfont_shape (Lisp_Object);
+# endif
+#endif
 
 #ifdef HAVE_OTF_GET_VARIATION_GLYPHS
 static int ftfont_variation_glyphs (struct font *, int c,
@@ -619,6 +623,7 @@ struct OpenTypeSpec
     (P)[4] = '\0';                             \
   } while (0)
 
+#ifdef HAVE_LIBOTF
 #define OTF_TAG_SYM(SYM, TAG)                  \
   do {                                         \
     char str[5];                               \
@@ -626,6 +631,7 @@ struct OpenTypeSpec
     OTF_TAG_STR (TAG, str);                    \
     (SYM) = font_intern_prop (str, 4, 1);      \
   } while (0)
+#endif
 
 
 static struct OpenTypeSpec *