* xftfont.c (xftfont_shape): Now static, and defined only if needed.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 19 Mar 2011 05:05:19 +0000 (22:05 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 19 Mar 2011 05:05:19 +0000 (22:05 -0700)
src/ChangeLog
src/xftfont.c

index ec9f513..ef0999b 100644 (file)
@@ -1,5 +1,7 @@
 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * xftfont.c (xftfont_shape): Now static, and defined only if needed.
+
        * 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.
index 695527c..7c8b5dd 100644 (file)
@@ -672,7 +672,8 @@ xftfont_draw (struct glyph_string *s, int from, int to, int x, int y, int with_b
   return len;
 }
 
-Lisp_Object
+#if defined HAVE_M17N_FLT && defined HAVE_LIBOTF
+static Lisp_Object
 xftfont_shape (Lisp_Object lgstring)
 {
   struct font *font;
@@ -688,6 +689,7 @@ xftfont_shape (Lisp_Object lgstring)
   XftUnlockFace (xftfont_info->xftfont);
   return val;
 }
+#endif
 
 static int
 xftfont_end_for_frame (FRAME_PTR f)