From bd54a1bf9805ebb7905b857d7234271ae496f904 Mon Sep 17 00:00:00 2001 From: Peter Wang Date: Mon, 21 Oct 2019 12:22:44 +1100 Subject: [PATCH] Always define _cairo_utf8_to_utf16 on Windows _cairo_utf8_to_utf16 is used by _cairo_fopen on Windows so must be defined even if Win32 fonts or other features are disabled. Fixes #381 --- src/cairoint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairoint.h b/src/cairoint.h index fd6fc9aa4..4dbb7f917 100644 --- a/src/cairoint.h +++ b/src/cairoint.h @@ -1912,7 +1912,7 @@ cairo_private int _cairo_ucs4_to_utf16 (uint32_t unicode, uint16_t *utf16); -#if CAIRO_HAS_WIN32_FONT || CAIRO_HAS_QUARTZ_FONT || CAIRO_HAS_PDF_OPERATORS +#if _WIN32 || 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