From 6eee90784ea8174b346e389c2f61b599543685e4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 24 Sep 2008 15:01:06 -0400 Subject: [PATCH] Enable CAIRO_HAS_UTF8_TO_UTF16 if PDF_OPERATORS is enabled We are being cheap and don't define the cairo_utf8_to_utf16 function if no one is using it. Previously PS surface was not using it, but after the pdf-operators merge, it was. Before this commit, building with PS but without PDF failed. Fixing. --- src/cairoint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairoint.h b/src/cairoint.h index add13d081..6b9a049ce 100644 --- a/src/cairoint.h +++ b/src/cairoint.h @@ -2355,7 +2355,7 @@ cairo_private int _cairo_ucs4_to_utf8 (uint32_t unicode, char *utf8); -#if CAIRO_HAS_WIN32_FONT || CAIRO_HAS_QUARTZ_FONT || CAIRO_HAS_PDF_SURFACE +#if CAIRO_HAS_WIN32_FONT || CAIRO_HAS_QUARTZ_FONT || CAIRO_HAS_PDF_OPERATORS # define CAIRO_HAS_UTF8_TO_UTF16 1 #endif #if CAIRO_HAS_UTF8_TO_UTF16