Add missing cairo-svg dependency to test-ot-color
authorJames Hilliard <james.hilliard1@gmail.com>
Sun, 23 Jun 2019 01:38:48 +0000 (19:38 -0600)
committerJames Hilliard <james.hilliard1@gmail.com>
Sun, 23 Jun 2019 06:42:06 +0000 (00:42 -0600)
src/test-ot-color.cc

index 44bd2eb..e9126c0 100644 (file)
@@ -25,7 +25,9 @@
 
 #include "hb.hh"
 
-#ifndef HB_NO_COLOR
+#include <cairo.h>
+
+#if !defined(HB_NO_COLOR) && defined(CAIRO_HAS_SVG_SURFACE)
 
 #include "hb-ot.h"
 
@@ -35,7 +37,6 @@
 #include FT_FREETYPE_H
 #include FT_GLYPH_H
 
-#include <cairo.h>
 #include <cairo-ft.h>
 #include <cairo-svg.h>