Fix for building with Python 3.8

This commit is contained in:
2019-10-16 13:39:29 +11:00
parent cfb6ffd48f
commit a7cf7b114f

View File

@@ -28,6 +28,12 @@
#include <Python.h>
#include <frameobject.h>
/* Needed for 'PyInterpreterState', we should remove this dependency. */
#if PY_VERSION_HEX >= 0x03080000
# define Py_BUILD_CORE
# include <internal/pycore_pystate.h>
#endif
#include "BLI_utildefines.h" /* for bool */
#include "py_capi_utils.h"