diff options
author | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2008-11-11 04:59:38 +0300 |
---|---|---|
committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2008-11-11 04:59:38 +0300 |
commit | 05acb73e36ca6a470814a0283ad3775847b30dd2 (patch) | |
tree | 25c745c7b7ff674e13b0917bae311b709f7fc9b7 /tests | |
parent | 37ab9c664244887eeafaadb0ed457a5b480c558b (diff) |
fixed test for cases where M_PI isn't defined
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dft-test.c | 4 | ||||
-rw-r--r-- | tests/mdct-test.c | 4 |
2 files changed, 8 insertions, 0 deletions
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 <stdio.h> #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) { |