Fix build error after PyGPU changes

This commit is contained in:
Brecht Van Lommel 2022-11-29 18:46:59 +01:00
parent 8fa8cea8e0
commit 9f753e5649
2 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,7 @@ static PyObject *py_error__getter(PyObject *UNUSED(self), void *UNUSED(type))
return NULL;
}
static int py_error__setter(PyObject *UNUSED(self), PyObject *value, void *UNUSED(type))
static int py_error__setter(PyObject *UNUSED(self), PyObject *UNUSED(value), void *UNUSED(type))
{
PyErr_SetString(PyExc_SystemError, g_error);
return -1;

View File

@ -6,6 +6,8 @@
#pragma once
#include "../generic/py_capi_utils.h"
extern struct PyC_StringEnumItems bpygpu_primtype_items[];
extern struct PyC_StringEnumItems bpygpu_dataformat_items[];