Skip to content

Commit 38fd472

Browse files
committed
fix: native build with 1.5 options
1 parent cca3561 commit 38fd472

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/decoder/async-decoder.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ namespace flac_bindings {
7676

7777
AsyncDecoderWork* AsyncDecoderWork::forFinishLink(const StoreList& list, DecoderWorkContext* ctx) {
7878
auto workFunction = [ctx]() -> int {
79+
#if FLAC_API_VERSION_CURRENT >= 14
7980
return FLAC__stream_decoder_finish_link(ctx->dec);
81+
#else
82+
return false;
83+
#endif
8084
};
8185

8286
return new AsyncDecoderWork(

0 commit comments

Comments
 (0)