Resolve undefined M_PI w/ MSVC2013

This commit is contained in:
Campbell Barton 2016-07-26 05:28:13 +10:00
parent 6e131ce075
commit 4da8543d0d
1 changed files with 4 additions and 0 deletions

View File

@ -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>