[Bf-blender-cvs] [edcefb739ae] master: Cleanup: Fix build error with msvc

Lazydodo noreply at git.blender.org
Sat Aug 3 18:47:41 CEST 2019


Commit: edcefb739ae0e5263dbf73fea677b2700a06a96e
Author: Lazydodo
Date:   Sat Aug 3 10:47:35 2019 -0600
Branches: master
https://developer.blender.org/rBedcefb739ae0e5263dbf73fea677b2700a06a96e

Cleanup: Fix build error with msvc

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.

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

M	release/datafiles/userdef/userdef_default.c

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

diff --git a/release/datafiles/userdef/userdef_default.c b/release/datafiles/userdef/userdef_default.c
index 73146e59123..99c8cd72dba 100644
--- a/release/datafiles/userdef/userdef_default.c
+++ b/release/datafiles/userdef/userdef_default.c
@@ -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"



More information about the Bf-blender-cvs mailing list