fixed test for cases where M_PI isn't defined
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Tue, 11 Nov 2008 01:59:38 +0000 (20:59 -0500)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Tue, 11 Nov 2008 01:59:38 +0000 (20:59 -0500)
tests/dft-test.c
tests/mdct-test.c

index 9532f2f..4e9c0ab 100644 (file)
@@ -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)
index 892c27a..cd6acae 100644 (file)
@@ -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)
 {