diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-09-19 10:44:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-09-19 10:49:38 +0300 |
commit | 6844b02a71bd9d84af5bdbcb32eb49ea6ac552e7 (patch) | |
tree | c063bf3fc2eed4ab13160ae0e0b05cd92376f21e /source/blender/python/generic | |
parent | 631d08aaed39a52c1479cd014c9941824743b5c1 (diff) |
Fix for building w/ Python3.6
Diffstat (limited to 'source/blender/python/generic')
-rw-r--r-- | source/blender/python/generic/py_capi_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/generic/py_capi_utils.c b/source/blender/python/generic/py_capi_utils.c index 9e6ffe91848..cd86ed24bcb 100644 --- a/source/blender/python/generic/py_capi_utils.c +++ b/source/blender/python/generic/py_capi_utils.c @@ -666,7 +666,7 @@ void PyC_SetHomePath(const char *py_path_bundle) bool PyC_IsInterpreterActive(void) { - return (((PyThreadState *)_Py_atomic_load_relaxed(&_PyThreadState_Current)) != NULL); + return (PyThreadState_GET() != NULL); } /* Would be nice if python had this built in |