Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/intern/bpy_compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_compat.h b/source/blender/python/intern/bpy_compat.h
index 0032b760219..bc201a3e802 100644
--- a/source/blender/python/intern/bpy_compat.h
+++ b/source/blender/python/intern/bpy_compat.h
@@ -43,7 +43,15 @@
#undef PyLong_Check
#define PyLong_Check PyInt_Check
+
+#ifdef PyUnicode_FromString
+#undef PyUnicode_FromString
+#endif
#define PyUnicode_FromString PyString_FromString
+
+#ifdef PyUnicode_FromFormat
+#undef PyUnicode_FromFormat
+#endif
#define PyUnicode_FromFormat PyString_FromFormat
#endif