From ccdb8e23073ac1e27bd5fd7ea94a6c200a3e9c72 Mon Sep 17 00:00:00 2001 From: Alexandre Bique Date: Fri, 18 May 2018 11:39:33 +0200 Subject: [PATCH] Fix test compilation when font-config is disabled Building cairo without font-config fails because test/font-variations.c was getting compiled without freetype2. Reviewed-by: Bryce Harrington --- test/font-variations.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/font-variations.c b/test/font-variations.c index 7913701b5..796da743c 100644 --- a/test/font-variations.c +++ b/test/font-variations.c @@ -27,14 +27,17 @@ #include -#if CAIRO_HAS_FC_FONT +// This test requires freetype2 #include #include FT_FREETYPE_H #include FT_MULTIPLE_MASTERS_H + +#if CAIRO_HAS_FC_FONT #include -#include "cairo-ft.h" #endif +#include "cairo-ft.h" + #define FloatToFixed(f) ((FT_Fixed)((f)*65536)) static cairo_test_status_t