summaryrefslogtreecommitdiff
path: root/pango/pangocairo-fontmap.c
diff options
context:
space:
mode:
authorJohn Ralls <jralls@ceridwen.us>2012-08-22 11:26:39 -0700
committerJohn Ralls <jralls@ceridwen.us>2012-08-22 11:26:39 -0700
commit8a4403018787f8692650b2894804d0ec513eb220 (patch)
tree50936ad3cce1382bd0167da3ea3733335e19ca1a /pango/pangocairo-fontmap.c
parent34b92d7d96d8de0e7e8f9f20a6ca333b3c06b1d9 (diff)
downloadpango-8a4403018787f8692650b2894804d0ec513eb220.tar.gz
Check for Cairo-Quartz as well as CoreText
Diffstat (limited to 'pango/pangocairo-fontmap.c')
-rw-r--r--pango/pangocairo-fontmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/pangocairo-fontmap.c b/pango/pangocairo-fontmap.c
index e0ff95f9..0bea979c 100644
--- a/pango/pangocairo-fontmap.c
+++ b/pango/pangocairo-fontmap.c
@@ -25,7 +25,7 @@
#include "pangocairo-private.h"
#include "pango-impl-utils.h"
-#if defined (HAVE_CORE_TEXT)
+#if defined (HAVE_CORE_TEXT) && defined (HAVE_CAIRO_QUARTZ)
# include "pangocairo-coretext.h"
#endif
#if defined (HAVE_CAIRO_WIN32)
@@ -69,7 +69,7 @@ pango_cairo_font_map_new (void)
/* Make sure that the type system is initialized */
g_type_init ();
-#if defined(HAVE_CORE_TEXT)
+#if defined(HAVE_CORE_TEXT) && defined (HAVE_CAIRO_QUARTZ)
return g_object_new (PANGO_TYPE_CAIRO_CORE_TEXT_FONT_MAP, NULL);
#elif defined(HAVE_CAIRO_WIN32)
return g_object_new (PANGO_TYPE_CAIRO_WIN32_FONT_MAP, NULL);
@@ -107,7 +107,7 @@ pango_cairo_font_map_new_for_font_type (cairo_font_type_t fonttype)
switch ((int) fonttype)
{
-#if defined(HAVE_CORE_TEXT)
+#if defined(HAVE_CORE_TEXT) && defined (HAVE_CAIRO_QUARTZ)
case CAIRO_FONT_TYPE_QUARTZ:
return g_object_new (PANGO_TYPE_CAIRO_CORE_TEXT_FONT_MAP, NULL);
#endif