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
7a9166f905
commit
c87749e7ee
|
@ -25,6 +25,17 @@
|
||||||
#include <gr_io_signature.h>
|
#include <gr_io_signature.h>
|
||||||
#include "iqbalance_optimize_c.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" {
|
extern "C" {
|
||||||
#include <osmocom/dsp/cxvec.h>
|
#include <osmocom/dsp/cxvec.h>
|
||||||
#include <osmocom/dsp/iqbal.h>
|
#include <osmocom/dsp/iqbal.h>
|
||||||
|
|
Loading…
Reference in New Issue