[Bf-blender-cvs] [92a380d] master: Minor changes for standalone mathutils
Campbell Barton
noreply at git.blender.org
Sat May 17 04:06:53 CEST 2014
Commit: 92a380d0b280c5851a37d076dba463358461974d
Author: Campbell Barton
Date: Sat May 17 12:05:16 2014 +1000
https://developer.blender.org/rB92a380d0b280c5851a37d076dba463358461974d
Minor changes for standalone mathutils
===================================================================
M source/blender/python/mathutils/mathutils.c
M source/blender/python/mathutils/mathutils_Matrix.c
===================================================================
diff --git a/source/blender/python/mathutils/mathutils.c b/source/blender/python/mathutils/mathutils.c
index 1ecb2c0..349f848 100644
--- a/source/blender/python/mathutils/mathutils.c
+++ b/source/blender/python/mathutils/mathutils.c
@@ -477,8 +477,10 @@ static struct PyModuleDef M_Mathutils_module_def = {
/* submodules only */
#include "mathutils_geometry.h"
-#include "mathutils_kdtree.h"
-#include "mathutils_noise.h"
+#ifndef MATH_STANDALONE
+# include "mathutils_kdtree.h"
+# include "mathutils_noise.h"
+#endif
PyMODINIT_FUNC PyInit_mathutils(void)
{
diff --git a/source/blender/python/mathutils/mathutils_Matrix.c b/source/blender/python/mathutils/mathutils_Matrix.c
index 6129bb8..3456400 100644
--- a/source/blender/python/mathutils/mathutils_Matrix.c
+++ b/source/blender/python/mathutils/mathutils_Matrix.c
@@ -31,9 +31,9 @@
#include "BLI_math.h"
#include "BLI_utildefines.h"
-#include "BLI_string.h"
#ifndef MATH_STANDALONE
+# include "BLI_string.h"
# include "BLI_dynstr.h"
#endif
More information about the Bf-blender-cvs
mailing list