Fix for building w/ Python3.6

This commit is contained in:
Campbell Barton
2015-09-19 17:44:44 +10:00
parent 631d08aaed
commit 6844b02a71
2 changed files with 2 additions and 2 deletions

View File

@@ -666,7 +666,7 @@ void PyC_SetHomePath(const char *py_path_bundle)
bool PyC_IsInterpreterActive(void) 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 /* Would be nice if python had this built in