[librsvg/fix-test-build-wo-pangoft: 1/2] tests/test-utils.c: Fix build without PangoFT2
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/fix-test-build-wo-pangoft: 1/2] tests/test-utils.c: Fix build without PangoFT2
- Date: Wed, 25 Mar 2020 04:47:17 +0000 (UTC)
commit 6b85671c4f6224f45f530c0f4642e516ad0593a0
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Mar 25 12:42:59 2020 +0800
tests/test-utils.c: Fix build without PangoFT2
PangoFT2's headers included the FreeType2 headers for us, but builds without
PangoFT2 had to include them explicitly. So do so here if we don't have
PangoFT2.
tests/test-utils.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/tests/test-utils.c b/tests/test-utils.c
index 5dc20e1f..b2bd19c0 100644
--- a/tests/test-utils.c
+++ b/tests/test-utils.c
@@ -9,6 +9,9 @@
#include <pango/pangocairo.h>
#ifdef HAVE_PANGOFT2
#include <pango/pangofc-fontmap.h>
+#else
+#include <ft2build.h>
+#include FT_FREETYPE_H
#endif
/* Compare two buffers, returning the number of pixels that are
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]