]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid compilation warning in ftfont.c
authorEli Zaretskii <eliz@gnu.org>
Mon, 17 Dec 2018 17:45:06 +0000 (19:45 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 17 Dec 2018 17:45:06 +0000 (19:45 +0200)
* src/ftfont.c (ftfont_shape_by_hb): Compile only if
HAVE_LIBOTF is defined.  (Bug#33771)

src/ftfont.c

index bbdc936ffd18ac20112e0de2c8b9cf0400f2bba9..824a005df1b608f0c7b59917869edf75527673fe 100644 (file)
@@ -2815,6 +2815,7 @@ get_hb_unicode_funcs (void)
   return funcs;
 }
 
+#ifdef HAVE_LIBOTF
 static Lisp_Object
 ftfont_shape_by_hb (Lisp_Object lgstring, FT_Face ft_face, hb_font_t *hb_font,
                     FT_Matrix *matrix)
@@ -2929,6 +2930,7 @@ done:
   return make_fixnum (glyph_len);
 }
 
+#endif /* HAVE_LIBOTF */
 #endif /* HAVE_HARFBUZZ */
 
 #if defined HAVE_LIBOTF && (defined HAVE_M17N_FLT || defined HAVE_HARFBUZZ)