summaryrefslogtreecommitdiff
path: root/gr-vocoder/include/gnuradio/vocoder/freedv_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'gr-vocoder/include/gnuradio/vocoder/freedv_api.h')
-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 04c768bcb7..c025432c5d 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