From 63db0d2aed3cda83470bae5c2c8128d1bc54ac46 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 22 Dec 2022 12:19:33 -0700 Subject: [PATCH] [util] Speculatively fix build against non-PNG builds --- util/hb-cairo-utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/hb-cairo-utils.c b/util/hb-cairo-utils.c index 36c4acd6b..0f03e40f3 100644 --- a/util/hb-cairo-utils.c +++ b/util/hb-cairo-utils.c @@ -70,6 +70,7 @@ cairo_extend (hb_paint_extend_t extend) return CAIRO_EXTEND_PAD; } +#ifdef CAIRO_HAS_PNG_FUNCTIONS typedef struct { hb_blob_t *blob; @@ -95,6 +96,7 @@ read_blob (void *closure, return CAIRO_STATUS_SUCCESS; } +#endif void hb_cairo_paint_glyph_image (cairo_t *cr,