From 1d01fee980edf60215acd94daf2533a9fefb9342 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Thu, 21 Jun 2012 17:59:56 +0200 Subject: fix hardcoded tables compililation caused by missing math constants Add -D_XOPEN_SOURCE=600 to host cflags to make the constants in math.h available. Include math.h where necessary and remove redundant M_PI defines. --- libavcodec/cos_tablegen.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'libavcodec/cos_tablegen.c') diff --git a/libavcodec/cos_tablegen.c b/libavcodec/cos_tablegen.c index 5e52c482c6..8a9085704e 100644 --- a/libavcodec/cos_tablegen.c +++ b/libavcodec/cos_tablegen.c @@ -24,9 +24,6 @@ #include #include -#ifndef M_PI -#define M_PI 3.14159265358979323846 -#endif #define BITS 16 #define FLOATFMT "%.18e" #define FIXEDFMT "%6d" -- cgit v1.2.3