lib: hack to make "float complex" works on newer GCC
I _like_ the "float complex" syntax and it's valid in C and I won't go change all my C project to make it work with C++ ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
27c5af81f9
commit
de99fa6d22
|
@ -25,6 +25,17 @@
|
|||
#include <gnuradio/io_signature.h>
|
||||
#include <gnuradio/iqbalance/optimize_c.h>
|
||||
|
||||
#define GCC_VERSION ( \
|
||||
__GNUC__ * 10000 + \
|
||||
__GNUC_MINOR__ * 100 + \
|
||||
__GNUC_PATCHLEVEL__ \
|
||||
)
|
||||
|
||||
#if GCC_VERSION >= 40800
|
||||
# define complex _Complex
|
||||
# undef _GLIBCXX_HAVE_COMPLEX_H
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
#include <osmocom/dsp/cxvec.h>
|
||||
#include <osmocom/dsp/iqbal.h>
|
||||
|
|
Loading…
Reference in New Issue