Resolve undefined M_PI w/ MSVC2013
authorCampbell Barton <ideasman42@gmail.com>
Mon, 25 Jul 2016 19:28:13 +0000 (05:28 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 25 Jul 2016 19:28:13 +0000 (05:28 +1000)
extern/curve_fit_nd/intern/curve_fit_cubic_refit.c

index 4644546..c78b79d 100644 (file)
  *   While re-fitting, remove knots that fall below the error threshold.
  */
 
+#ifdef _MSC_VER
+#  define _USE_MATH_DEFINES
+#endif
+
 #include <math.h>
 #include <float.h>
 #include <stdbool.h>