Commit: 4da8543d0db543024abfd4b37036932ace9eeca2
Author: Campbell Barton
Date:   Tue Jul 26 05:28:13 2016 +1000
Branches: master
https://developer.blender.org/rB4da8543d0db543024abfd4b37036932ace9eeca2

Resolve undefined M_PI w/ MSVC2013

===================================================================

M       extern/curve_fit_nd/intern/curve_fit_cubic_refit.c

===================================================================

diff --git a/extern/curve_fit_nd/intern/curve_fit_cubic_refit.c 
b/extern/curve_fit_nd/intern/curve_fit_cubic_refit.c
index 4644546..c78b79d 100644
--- a/extern/curve_fit_nd/intern/curve_fit_cubic_refit.c
+++ b/extern/curve_fit_nd/intern/curve_fit_cubic_refit.c
@@ -43,6 +43,10 @@
  *   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>

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to