From 96d4fbe368d49a67d680d8fa6c60969530678346 Mon Sep 17 00:00:00 2001 From: Victor Gaydov Date: Mon, 12 Aug 2024 21:35:53 +0400 Subject: [PATCH] build: Detect when OpenFEC is built without some codecs Earlier we required that OpenFEC should be always built with both rs8m and ldpc enabled. Now we updated to OpenFEC 1.4.2.11, which provides cmake options to disable some codec. We detect it and don't use disabled codecs. --- src/internal_modules/roc_fec/codec_map.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/internal_modules/roc_fec/codec_map.cpp b/src/internal_modules/roc_fec/codec_map.cpp index 04464cd39..794c60311 100644 --- a/src/internal_modules/roc_fec/codec_map.cpp +++ b/src/internal_modules/roc_fec/codec_map.cpp @@ -18,6 +18,10 @@ #include "roc_fec/openfec_encoder.h" #endif // ROC_TARGET_OPENFEC +extern "C" { +#include +} + namespace roc { namespace fec {