summaryrefslogtreecommitdiff
path: root/libavutil/mathematics.h
diff options
context:
space:
mode:
authorMatt Oliver <protogonoi@gmail.com>2014-02-03 17:46:11 +1100
committerMichael Niedermayer <michaelni@gmx.at>2014-02-03 19:48:41 +0100
commit3e309c5d185bc0288e4c8cadf97c91c04806b875 (patch)
tree21374ebb3f2f2635d9b289ddf6dca6988805557b /libavutil/mathematics.h
parente9314f196880092e1177fd19ca00b01033362b0b (diff)
Fix compilation with msvc/icl due to missing header and define.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/mathematics.h')
-rw-r--r--libavutil/mathematics.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h
index a8b1d8eb31..88739e80b8 100644
--- a/libavutil/mathematics.h
+++ b/libavutil/mathematics.h
@@ -45,6 +45,9 @@
#ifndef M_PI
#define M_PI 3.14159265358979323846 /* pi */
#endif
+#ifndef M_PI_2
+#define M_PI_2 1.57079632679489661923 /* pi/2 */
+#endif
#ifndef M_SQRT1_2
#define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */
#endif