From 66534b782c243f8a9a6c392674fa6e1706e7e822 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Mon, 30 Nov 2009 16:54:04 +0100 Subject: Some of our unit tests require mathematical constants and thus we rely on non-ansi code. It seems as if the new standard removed pow(T,int). M_PIL is only defined when _GNU_SOURCE is defined. --- unsupported/test/FFT.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'unsupported/test/FFT.cpp') diff --git a/unsupported/test/FFT.cpp b/unsupported/test/FFT.cpp index ad0d426e4..861677174 100644 --- a/unsupported/test/FFT.cpp +++ b/unsupported/test/FFT.cpp @@ -47,7 +47,11 @@ complex promote(long double x) { return complex( x); cerr <<"idx\ttruth\t\tvalue\t|dif|=\n"; for (size_t k0=0;k0 acc = 0; +#ifdef _GNU_SOURCE long double phinc = -2.*k0* M_PIl / timebuf.size(); +#else + long double phinc = -2.*k0* M_PI / timebuf.size(); +#endif for (size_t k1=0;k1(0,k1*phinc) ); } -- cgit v1.2.3