From 365d8ceac0ff7c0d97777e06cce96b9796bb2fd5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 23 Sep 2015 23:19:55 +1000 Subject: [PATCH] Workaround for linking Python on win32 --- source/blender/python/generic/py_capi_utils.c | 3 +++ 1 file changed, 3 insertions(+) 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 #include