Commit 4430fa0e authored by Nirbheek Chauhan's avatar Nirbheek Chauhan 🐜
Browse files

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
parent 48d897f6
Pipeline #23340 failed with stages
in 10 minutes and 34 seconds
......@@ -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() */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment