aboutsummaryrefslogtreecommitdiffstats
path: root/gr-vocoder
diff options
context:
space:
mode:
authorDavide Gerhard <rainbow@irh.it>2019-11-05 18:46:46 +0100
committerMichael Dickens <michael.dickens@ettus.com>2019-11-05 14:54:19 -0500
commit19cac6cb29e664cbeac731964588732b61c8573b (patch)
treeb03d1319149ce6c3753dde1ec1ae5e02a9e2c1e6 /gr-vocoder
parentModule name correction for bokehgui (diff)
downloadgnuradio-19cac6cb29e664cbeac731964588732b61c8573b.tar.xz
gnuradio-19cac6cb29e664cbeac731964588732b61c8573b.zip
codec2: fix support for codec2 version < 0.8
codec2 version < 0.8 doesn't provide codec2/version.h header therefore cmake discovers if it is available. fix gr-vocoder build on ubuntu < 19.04 and debian < 10 Closes: https://github.com/gnuradio/gnuradio/pull/2858#issuecomment-549391165
Diffstat (limited to 'gr-vocoder')
-rw-r--r--gr-vocoder/include/gnuradio/vocoder/freedv_api.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gr-vocoder/include/gnuradio/vocoder/freedv_api.h b/gr-vocoder/include/gnuradio/vocoder/freedv_api.h
index 04c768bcb..c025432c5 100644
--- a/gr-vocoder/include/gnuradio/vocoder/freedv_api.h
+++ b/gr-vocoder/include/gnuradio/vocoder/freedv_api.h
@@ -27,14 +27,13 @@
// 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
+#ifdef CODEC2_LEGACY
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
+#ifdef CODEC2_LEGACY
}
#endif