Fix compiling on MSVC - M_PI undefined

This commit is contained in:
Joshua Leung 2016-05-09 01:31:13 +12:00
parent 81c302bbff
commit e43ee5563b

@ -39,6 +39,12 @@
#include "../curve_fit_nd.h"
/* Fix for compiling on MSVC */
#ifndef M_PI
#define M_PI 3.14159265358979323846 /* pi */
#endif
/* Take curvature into account when calculating the least square solution isn't usable. */
#define USE_CIRCULAR_FALLBACK