aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2018-12-18 20:45:27 +0200
committerEli Zaretskii2018-12-18 20:45:27 +0200
commit80e0491420a9f645efa6c1438f209f70610c4065 (patch)
treebac4a5c39d1e4acf187890c4906231118e1ca076 /src
parent681271d946c16d90409e00cec4216656c771f1d6 (diff)
downloademacs-80e0491420a9f645efa6c1438f209f70610c4065.tar.gz
emacs-80e0491420a9f645efa6c1438f209f70610c4065.zip
Fix one last compilation warning in ftfont.c
* src/ftfont.c (ftfont_get_hb_font): Only define if HAVE_LIBOTF is defined. (Bug#33771)
Diffstat (limited to 'src')
-rw-r--r--src/ftfont.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ftfont.c b/src/ftfont.c
index 4e147cd277b..8476a74854c 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -474,9 +474,8 @@ ftfont_get_otf (struct ftfont_info *ftfont_info)
474 ftfont_info->otf = otf; 474 ftfont_info->otf = otf;
475 return otf; 475 return otf;
476} 476}
477#endif /* HAVE_LIBOTF */
478 477
479#ifdef HAVE_HARFBUZZ 478# ifdef HAVE_HARFBUZZ
480 479
481static hb_font_t * 480static hb_font_t *
482ftfont_get_hb_font (struct ftfont_info *ftfont_info) 481ftfont_get_hb_font (struct ftfont_info *ftfont_info)
@@ -487,7 +486,8 @@ ftfont_get_hb_font (struct ftfont_info *ftfont_info)
487 return ftfont_info->hb_font; 486 return ftfont_info->hb_font;
488} 487}
489 488
490#endif /* HAVE_HARFBUZZ */ 489# endif /* HAVE_HARFBUZZ */
490#endif /* HAVE_LIBOTF */
491 491
492Lisp_Object 492Lisp_Object
493ftfont_get_cache (struct frame *f) 493ftfont_get_cache (struct frame *f)