ref: 05acb73e36ca6a470814a0283ad3775847b30dd2
parent: 37ab9c664244887eeafaadb0ed457a5b480c558b
author: Jean-Marc Valin <[email protected]>
date: Mon Nov 10 15:59:38 EST 2008
fixed test for cases where M_PI isn't defined
--- 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)
--- 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)
{