diff options
author | Werner Lemberg <wl@gnu.org> | 2021-08-28 07:29:05 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2021-08-28 07:36:08 +0200 |
commit | d1c20005042a31fba7e86603b0f65fcbf21fe51c (patch) | |
tree | 88339aada28d27d996f133c83829587accf0bdbd | |
parent | 6804ce2986b8218ff5289d0c4a1a73f9b3277904 (diff) | |
download | freetype2-d1c20005042a31fba7e86603b0f65fcbf21fe51c.tar.gz |
[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.
-rw-r--r-- | src/truetype/ttgxvar.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c index aad3e2929..24b165f1f 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 */ + } |