Skip to content

Commit

Permalink
Wrap an encoder-only function in #if XD3_ENCODER
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTG committed Nov 17, 2023
1 parent 5659ae5 commit f3c35de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deps/xdelta3/xdelta3-fgk.h
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,7 @@ static void fgk_destroy (xd3_stream *stream,
/* Xdelta */
/*********************************************************************/

#if XD3_ENCODER
static int
xd3_encode_fgk (xd3_stream *stream, fgk_stream *sec_stream, xd3_output *input, xd3_output *output, xd3_sec_cfg *cfg)
{
Expand All @@ -809,6 +810,7 @@ xd3_encode_fgk (xd3_stream *stream, fgk_stream *sec_stream, xd3_output *input, x

return xd3_flush_bits (stream, & output, & bstate);
}
#endif

static int
xd3_decode_fgk (xd3_stream *stream,
Expand Down

0 comments on commit f3c35de

Please sign in to comment.