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:
Sylvain Munaut 2013-09-09 15:40:12 +02:00
parent 27c5af81f9
commit de99fa6d22
1 changed files with 11 additions and 0 deletions

View File

@ -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>