[Bf-blender-cvs] [365d8ce] master: Workaround for linking Python on win32
Campbell Barton
noreply at git.blender.org
Wed Sep 23 15:25:58 CEST 2015
Commit: 365d8ceac0ff7c0d97777e06cce96b9796bb2fd5
Author: Campbell Barton
Date: Wed Sep 23 23:19:55 2015 +1000
Branches: master
https://developer.blender.org/rB365d8ceac0ff7c0d97777e06cce96b9796bb2fd5
Workaround for linking Python on win32
===================================================================
M source/blender/python/generic/py_capi_utils.c
===================================================================
diff --git a/source/blender/python/generic/py_capi_utils.c b/source/blender/python/generic/py_capi_utils.c
index a721b90..78be5e5 100644
--- a/source/blender/python/generic/py_capi_utils.c
+++ b/source/blender/python/generic/py_capi_utils.c
@@ -29,8 +29,11 @@
* BLI_string_utf8() for unicode conversion.
*/
+/* TODO, resolve linking errors on win32 */
+#ifndef _WIN32
/* needed for Py3.6+ to access Py_PyThreadState_Current */
#define Py_BUILD_CORE
+#endif
#include <Python.h>
#include <frameobject.h>
More information about the Bf-blender-cvs
mailing list