From b18ead33f1325b856ab429cb0b8c296557fd49b3 Mon Sep 17 00:00:00 2001 From: Fahad Al-Saidi Date: Wed, 14 Dec 2016 11:29:09 +0400 Subject: [PATCH] declare text_layout_raqm only when we HAVE_RAQM --- _imagingft.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_imagingft.c b/_imagingft.c index 79d358dfe..d1bbe5822 100644 --- a/_imagingft.c +++ b/_imagingft.c @@ -205,6 +205,7 @@ font_getchar(PyObject* string, int index, FT_ULong* char_out) return 0; } +#ifdef HAVE_RAQM static size_t text_layout_raqm(PyObject* string, FontObject* self, const char* dir, PyObject *features ,GlyphInfo **glyph_info, int mask) @@ -342,6 +343,7 @@ failed: raqm_destroy (rq); return count; } +#endif static size_t text_layout_fallback(PyObject* string, FontObject* self, const char* dir,