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:42:00 +02:00
parent 7a9166f905
commit c87749e7ee
1 changed files with 11 additions and 0 deletions

View File

@ -25,6 +25,17 @@
#include <gr_io_signature.h>
#include "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>