From ffa45f243c6ae9977b67340cad7beaa8ce7110b4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 25 Dec 2022 17:14:45 -0700 Subject: [PATCH] [cairo] #ifdef HAVE_CAIRO --- src/hb-cairo-utils.cc | 4 ++++ src/hb-cairo.cc | 4 ++++ src/hb-ft.cc | 1 - 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/hb-cairo-utils.cc b/src/hb-cairo-utils.cc index 015ae30bd..619a97a68 100644 --- a/src/hb-cairo-utils.cc +++ b/src/hb-cairo-utils.cc @@ -26,6 +26,8 @@ #include "hb.hh" +#ifdef HAVE_CAIRO + #include "hb-cairo-utils.hh" #include @@ -827,3 +829,5 @@ hb_cairo_paint_sweep_gradient (cairo_t *cr, if (stops != stops_) free (stops); } + +#endif diff --git a/src/hb-cairo.cc b/src/hb-cairo.cc index 215c920aa..397ff8483 100644 --- a/src/hb-cairo.cc +++ b/src/hb-cairo.cc @@ -26,6 +26,8 @@ #include "hb.hh" +#ifdef HAVE_CAIRO + #include "hb-cairo.h" #include "hb-cairo-utils.hh" @@ -562,3 +564,5 @@ hb_cairo_glyphs_from_buffer (hb_buffer_t *buffer, } } } + +#endif diff --git a/src/hb-ft.cc b/src/hb-ft.cc index 337909559..cd7bc8eb7 100644 --- a/src/hb-ft.cc +++ b/src/hb-ft.cc @@ -1388,5 +1388,4 @@ hb_ft_font_set_funcs (hb_font_t *font) _hb_ft_hb_font_changed (font, ft_face); } - #endif