[Bf-blender-cvs] [e2722aec6bc] master: Fix ushort compiler errors in Windows

Antonio Vazquez noreply at git.blender.org
Thu Feb 20 10:28:43 CET 2020


Commit: e2722aec6bc17e0163b90df29e5323d6f14a4fb7
Author: Antonio Vazquez
Date:   Thu Feb 20 10:28:15 2020 +0100
Branches: master
https://developer.blender.org/rBe2722aec6bc17e0163b90df29e5323d6f14a4fb7

Fix ushort compiler errors in Windows

ushort is not supported

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

M	source/blender/python/mathutils/mathutils_Matrix.h

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

diff --git a/source/blender/python/mathutils/mathutils_Matrix.h b/source/blender/python/mathutils/mathutils_Matrix.h
index 5eb5223edfe..a0e2256b1ce 100644
--- a/source/blender/python/mathutils/mathutils_Matrix.h
+++ b/source/blender/python/mathutils/mathutils_Matrix.h
@@ -24,6 +24,8 @@
 extern PyTypeObject matrix_Type;
 extern PyTypeObject matrix_access_Type;
 
+typedef unsigned short ushort;
+
 #define MatrixObject_Check(v) PyObject_TypeCheck((v), &matrix_Type)
 #define MatrixObject_CheckExact(v) (Py_TYPE(v) == &matrix_Type)



More information about the Bf-blender-cvs mailing list