changeset 627:79c43f519d02 libavcodec

undefined M_PI / M_E fix
author michaelni
date Fri, 30 Aug 2002 16:16:30 +0000
parents 23a093d6e450
children f596db4aa871
files eval.c ratecontrol.c
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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{
--- 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 <assert.h>
 
+#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);