Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/celt-0.7.0.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2008-11-11 04:59:38 +0300
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2008-11-11 04:59:38 +0300
commit05acb73e36ca6a470814a0283ad3775847b30dd2 (patch)
tree25c745c7b7ff674e13b0917bae311b709f7fc9b7 /tests
parent37ab9c664244887eeafaadb0ed457a5b480c558b (diff)
fixed test for cases where M_PI isn't defined
Diffstat (limited to 'tests')
-rw-r--r--tests/dft-test.c4
-rw-r--r--tests/mdct-test.c4
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)
{