From 05acb73e36ca6a470814a0283ad3775847b30dd2 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Mon, 10 Nov 2008 20:59:38 -0500 Subject: fixed test for cases where M_PI isn't defined --- tests/dft-test.c | 4 ++++ tests/mdct-test.c | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/dft-test.c b/tests/dft-test.c index 9532f2f..4e9c0ab 100644 --- a/tests/dft-test.c +++ b/tests/dft-test.c @@ -5,6 +5,10 @@ #include #include "kiss_fft.h" +#ifndef M_PI +#define M_PI 3.141592653 +#endif + int ret = 0; void check(kiss_fft_cpx * in,kiss_fft_cpx * out,int nfft,int isinverse) diff --git a/tests/mdct-test.c b/tests/mdct-test.c index 892c27a..cd6acae 100644 --- a/tests/mdct-test.c +++ b/tests/mdct-test.c @@ -6,6 +6,10 @@ #include "mdct.h" #include "stack_alloc.h" +#ifndef M_PI +#define M_PI 3.141592653 +#endif + int ret = 0; void check(kiss_fft_scalar * in,kiss_fft_scalar * out,int nfft,int isinverse) { -- cgit v1.2.3