From 11e1466b432f661c7605ee23203f9cdc1020a4f3 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 5 Jan 2013 14:09:33 +0100 Subject: cos_tablegen: fix the lack on M_PI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We dont include mathematics.h as the headers get configured by config.h for the target not the host. Reviewed-by: Clément Bœsch Signed-off-by: Michael Niedermayer --- libavcodec/cos_tablegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/cos_tablegen.c') diff --git a/libavcodec/cos_tablegen.c b/libavcodec/cos_tablegen.c index af9391dd20..313a1d2663 100644 --- a/libavcodec/cos_tablegen.c +++ b/libavcodec/cos_tablegen.c @@ -56,7 +56,7 @@ int main(int argc, char *argv[]) printf("#include \"libavcodec/%s\"\n", do_sin ? "rdft.h" : "fft.h"); for (i = 4; i <= BITS; i++) { int m = 1 << i; - double freq = 2*M_PI/m; + double freq = 2*3.14159265358979323846/m; printf("%s(%i) = {\n ", do_sin ? "SINTABLE" : "COSTABLE", m); for (j = 0; j < m/2 - 1; j++) { int idx = j > m/4 ? m/2 - j : j; -- cgit v1.2.3