summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-01-07 22:38:25 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-01-07 22:38:25 +0000
commitc4d82fea545bbb293e01b04fb74d39b55813d408 (patch)
treea93841c1cf4d0891635dd500e4296af9bd220294
parent8d268a7d4c4b4f58b5561e7384d91ee39a72d3a7 (diff)
downloadffmpeg-streaming-c4d82fea545bbb293e01b04fb74d39b55813d408.zip
ffmpeg-streaming-c4d82fea545bbb293e01b04fb74d39b55813d408.tar.gz
generic M_PI define
Originally committed as revision 1418 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/common.h b/libavcodec/common.h
index 966f1cd..b8cf9f6 100644
--- a/libavcodec/common.h
+++ b/libavcodec/common.h
@@ -33,6 +33,10 @@
# define ENODATA 61
# endif
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
#endif /* HAVE_AV_CONFIG_H */
/* Suppress restrict if it was not defined in config.h. */
@@ -79,9 +83,6 @@ typedef INT64 int64_t;
# define UINT64_C(c) (c ## ULL)
# endif /* __MINGW32__ */
-# define M_PI 3.14159265358979323846
-# define M_SQRT2 1.41421356237309504880 /* sqrt(2) */
-
# ifdef _DEBUG
# define DEBUG
# endif
OpenPOWER on IntegriCloud