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
This commit is contained in:
Nirbheek Chauhan 2019-03-11 15:00:59 +05:30
parent 48d897f65f
commit 4430fa0e3e

View file

@ -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() */