# HG changeset patch # User michaelni # Date 1030724190 0 # Node ID 79c43f519d0217a814254f61cdf58333e9e489f0 # Parent 23a093d6e45046b094488be6f18695682f8c9c47 undefined M_PI / M_E fix diff -r 23a093d6e450 -r 79c43f519d02 eval.c --- a/eval.c Fri Aug 30 00:05:28 2002 +0000 +++ b/eval.c Fri Aug 30 16:16:30 2002 +0000 @@ -32,6 +32,10 @@ #define NAN 0 #endif +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif + #define STACK_SIZE 100 typedef struct Parser{ diff -r 23a093d6e450 -r 79c43f519d02 ratecontrol.c --- a/ratecontrol.c Fri Aug 30 00:05:28 2002 +0000 +++ b/ratecontrol.c Fri Aug 30 16:16:30 2002 +0000 @@ -26,6 +26,14 @@ #undef NDEBUG // allways check asserts, the speed effect is far too small to disable them #include +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif + +#ifndef M_E +#define M_E 2.718281828 +#endif + static int init_pass2(MpegEncContext *s); static double get_qscale(MpegEncContext *s, RateControlEntry *rce, double rate_factor, int frame_num);