diff options
Diffstat (limited to 'gr-vocoder/include/gnuradio/vocoder/freedv_api.h')
-rw-r--r-- | gr-vocoder/include/gnuradio/vocoder/freedv_api.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gr-vocoder/include/gnuradio/vocoder/freedv_api.h b/gr-vocoder/include/gnuradio/vocoder/freedv_api.h index b00cbbd425..04c768bcb7 100644 --- a/gr-vocoder/include/gnuradio/vocoder/freedv_api.h +++ b/gr-vocoder/include/gnuradio/vocoder/freedv_api.h @@ -25,11 +25,18 @@ #include <gnuradio/vocoder/api.h> +// version >=0.9.1 contains fixes that doesn't require "extern C" +// between 0.8.1 and 0.9.1 the build fail +#include <codec2/version.h> +#if CODEC2_VERSION_MAJOR == 0 && CODEC2_VERSION_MINOR < 9 extern "C" { +#endif #include <codec2/codec2.h> #include <codec2/freedv_api.h> #include <codec2/modem_stats.h> +#if CODEC2_VERSION_MAJOR == 0 && CODEC2_VERSION_MINOR < 9 } +#endif namespace gr { namespace vocoder { |