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:
authorCampbell Barton <ideasman42@gmail.com>2015-09-23 16:19:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-09-23 16:20:15 +0300
commit365d8ceac0ff7c0d97777e06cce96b9796bb2fd5 (patch)
treee04cae7577284f925daae28e94a12cb887a3ce1c /source/blender/python
parentf964334b88a83c150fad6f0ac6a72dd2b108bbc2 (diff)
Workaround for linking Python on win32
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/generic/py_capi_utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/generic/py_capi_utils.c b/source/blender/python/generic/py_capi_utils.c
index a721b9085a5..78be5e558db 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>