summaryrefslogtreecommitdiff
path: root/src/cairoint.h
diff options
context:
space:
mode:
authorPeter Wang <novalazy@gmail.com>2019-10-21 12:22:44 +1100
committerAdrian Johnson <ajohnson@redneon.com>2021-07-23 19:15:56 +0930
commitbd54a1bf9805ebb7905b857d7234271ae496f904 (patch)
tree155c3850cf00a58740a15560b10ff54ad0d1b65f /src/cairoint.h
parente5e63a04623db06a3b96883ea2f8849457ad35f5 (diff)
downloadcairo-bd54a1bf9805ebb7905b857d7234271ae496f904.tar.gz
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
Diffstat (limited to 'src/cairoint.h')
-rw-r--r--src/cairoint.h2
1 files changed, 1 insertions, 1 deletions
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