summaryrefslogtreecommitdiff
path: root/libavcodec/sinewin_tablegen.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-06-21 17:59:56 +0200
committerJanne Grunau <janne-libav@jannau.net>2012-06-21 18:05:40 +0200
commit1d01fee980edf60215acd94daf2533a9fefb9342 (patch)
tree4ab68c5c9f149e42b604e09779f9deecad0421fa /libavcodec/sinewin_tablegen.c
parent67ffcb9613b7bd35fd37a67a0d2363bd4d564605 (diff)
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.
Diffstat (limited to 'libavcodec/sinewin_tablegen.c')
-rw-r--r--libavcodec/sinewin_tablegen.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/sinewin_tablegen.c b/libavcodec/sinewin_tablegen.c
index d5e06895ca..90a75c2267 100644
--- a/libavcodec/sinewin_tablegen.c
+++ b/libavcodec/sinewin_tablegen.c
@@ -26,9 +26,6 @@
#define SINETABLE(size) \
float ff_sine_##size[size]
#define FF_ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0]))
-#ifndef M_PI
-#define M_PI 3.14159265358979323846
-#endif
#include "sinewin_tablegen.h"
#include "tableprint.h"