Workaround for linking Python on win32

This commit is contained in:
Campbell Barton 2015-09-23 23:19:55 +10:00
parent f964334b88
commit 365d8ceac0
1 changed files with 3 additions and 0 deletions

View File

@ -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>