projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48d897f
)
closedcaption: Fix build with Visual Studio
author
Nirbheek Chauhan
<nirbheek@centricular.com>
Mon, 11 Mar 2019 09:30:59 +0000
(15:00 +0530)
committer
Nirbheek Chauhan
<nirbheek@centricular.com>
Mon, 11 Mar 2019 09:32:53 +0000
(15:02 +0530)
../ext/closedcaption/io-sim.c(440): error C2065: 'M_PI': undeclared identifier
../ext/closedcaption/io-sim.c(442): error C2065: 'M_LN2': undeclared identifier
ext/closedcaption/io-sim.c
patch
|
blob
|
history
diff --git
a/ext/closedcaption/io-sim.c
b/ext/closedcaption/io-sim.c
index 8ba58ab2259d7cf9f1d1a3bbd3ad813b98216661..6d54576b962212afb7335d57e649ba7ad8b8771c 100644
(file)
--- 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() */