From e43ee5563b8856ab1de7b1d12d9aad927b2b2047 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Mon, 9 May 2016 01:31:13 +1200 Subject: Fix compiling on MSVC - M_PI undefined --- extern/curve_fit_nd/intern/curve_fit_cubic.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'extern') diff --git a/extern/curve_fit_nd/intern/curve_fit_cubic.c b/extern/curve_fit_nd/intern/curve_fit_cubic.c index 8fc7198f891..8261950e0bd 100644 --- a/extern/curve_fit_nd/intern/curve_fit_cubic.c +++ b/extern/curve_fit_nd/intern/curve_fit_cubic.c @@ -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 -- cgit v1.2.3