Cleanup: Fix build error with msvc
authorLazydodo <github@lazydodo.com>
Sat, 3 Aug 2019 16:47:35 +0000 (10:47 -0600)
committerLazydodo <github@lazydodo.com>
Sat, 3 Aug 2019 16:47:35 +0000 (10:47 -0600)
math.h does not define M_PI on windows, needs BLI_math_base.h to get them.

thanks to @quollism on chat for spotting it.

release/datafiles/userdef/userdef_default.c

index 73146e5912370feafea5b34b4d11f6db3dd8ece8..99c8cd72dbada7c2c17fc6fea2e58d26c64d44d0 100644 (file)
@@ -17,7 +17,7 @@
 /* Preferences Data File 'U_default'. */
 
 /* For constants. */
-#include <math.h>
+#include "BLI_math_base.h"
 
 #include "DNA_userdef_types.h"
 #include "DNA_curve_types.h"