[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master d1c2000: [truetype] Fix compilation if !TT_CONFIG_OPT
From: |
Werner Lemberg |
Subject: |
[freetype2] master d1c2000: [truetype] Fix compilation if !TT_CONFIG_OPTION_BYTECODE_INTERPRETER. |
Date: |
Sat, 28 Aug 2021 01:36:54 -0400 (EDT) |
branch: master
commit d1c20005042a31fba7e86603b0f65fcbf21fe51c
Author: Werner Lemberg <wl@gnu.org>
Commit: Werner Lemberg <wl@gnu.org>
[truetype] Fix compilation if !TT_CONFIG_OPTION_BYTECODE_INTERPRETER.
* src/truetype/ttgxvar.c (tt_cvt_ready_iterator): Compile function
conditionally.
(tt_face_vary_cvt) [!TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Add code.
Fixes #1091.
---
src/truetype/ttgxvar.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c
index aad3e29..24b165f 100644
--- a/src/truetype/ttgxvar.c
+++ b/src/truetype/ttgxvar.c
@@ -3164,6 +3164,8 @@
/*************************************************************************/
+#ifdef TT_CONFIG_GPTION_BYTECODE_INTERPRETER
+
static FT_Error
tt_cvt_ready_iterator( FT_ListNode node,
void* user )
@@ -3178,6 +3180,9 @@
return FT_Err_Ok;
}
+#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
+
+
/**************************************************************************
*
@@ -3206,6 +3211,8 @@
tt_face_vary_cvt( TT_Face face,
FT_Stream stream )
{
+#ifdef TT_CONFIG_GPTION_BYTECODE_INTERPRETER
+
FT_Error error;
FT_Memory memory = stream->memory;
@@ -3526,6 +3533,16 @@
NULL );
return error;
+
+#else /* !TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
+
+ FT_UNUSED( face );
+ FT_UNUSED( stream );
+
+ return FT_Err_Ok;
+
+#endif /* !TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
+
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master d1c2000: [truetype] Fix compilation if !TT_CONFIG_OPTION_BYTECODE_INTERPRETER.,
Werner Lemberg <=