diff --git a/source/blender/python/mathutils/mathutils.c b/source/blender/python/mathutils/mathutils.c index 1ecb2c08bc1..349f8483fb0 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 6129bb869f5..34564007478 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