diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-03-11 15:00:59 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-03-11 15:02:53 +0530 |
commit | 4430fa0e3ea797cc18a01a311bd1c6ae03ce9ca5 (patch) | |
tree | 4bb5e43c10d2479df562145ca7407755b3db0897 | |
parent | 48d897f65f2ea0ba2c2d0871cdeaa64bcd4c50e4 (diff) | |
download | gstreamer-plugins-bad-4430fa0e3ea797cc18a01a311bd1c6ae03ce9ca5.tar.gz |
closedcaption: Fix build with Visual Studio
../ext/closedcaption/io-sim.c(440): error C2065: 'M_PI': undeclared identifier
../ext/closedcaption/io-sim.c(442): error C2065: 'M_LN2': undeclared identifier
-rw-r--r-- | ext/closedcaption/io-sim.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/closedcaption/io-sim.c b/ext/closedcaption/io-sim.c index 8ba58ab22..6d54576b9 100644 --- a/ext/closedcaption/io-sim.c +++ b/ext/closedcaption/io-sim.c @@ -25,6 +25,9 @@ # include "config.h" #endif +#ifdef _MSC_VER +#define _USE_MATH_DEFINES /* Needed for M_PI and M_LN2 */ +#endif #include <math.h> /* sin(), log() */ #include <errno.h> #include <ctype.h> /* isspace() */ |