Fix compiling on MSVC - M_PI undefined
This commit is contained in:
6
extern/curve_fit_nd/intern/curve_fit_cubic.c
vendored
6
extern/curve_fit_nd/intern/curve_fit_cubic.c
vendored
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user