[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.
This commit is contained in:
Werner Lemberg 2021-08-28 07:29:05 +02:00
parent 6804ce2986
commit d1c2000504
1 changed files with 17 additions and 0 deletions

View File

@ -3164,6 +3164,8 @@
/*************************************************************************/ /*************************************************************************/
#ifdef TT_CONFIG_GPTION_BYTECODE_INTERPRETER
static FT_Error static FT_Error
tt_cvt_ready_iterator( FT_ListNode node, tt_cvt_ready_iterator( FT_ListNode node,
void* user ) void* user )
@ -3178,6 +3180,9 @@
return FT_Err_Ok; return FT_Err_Ok;
} }
#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
/************************************************************************** /**************************************************************************
* *
@ -3206,6 +3211,8 @@
tt_face_vary_cvt( TT_Face face, tt_face_vary_cvt( TT_Face face,
FT_Stream stream ) FT_Stream stream )
{ {
#ifdef TT_CONFIG_GPTION_BYTECODE_INTERPRETER
FT_Error error; FT_Error error;
FT_Memory memory = stream->memory; FT_Memory memory = stream->memory;
@ -3526,6 +3533,16 @@
NULL ); NULL );
return error; return error;
#else /* !TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
FT_UNUSED( face );
FT_UNUSED( stream );
return FT_Err_Ok;
#endif /* !TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
} }