diff --git a/numba_dpex/core/runtime/_nrt_python_helper.c b/numba_dpex/core/runtime/_nrt_python_helper.c index 9833c6cb85..3bcfed8114 100644 --- a/numba_dpex/core/runtime/_nrt_python_helper.c +++ b/numba_dpex/core/runtime/_nrt_python_helper.c @@ -183,7 +183,7 @@ PyTypeObject MemInfoType = { * act as a reminder to update this struct on Python version update! */ #if (PY_MAJOR_VERSION == 3) #if !((PY_MINOR_VERSION == 8) || (PY_MINOR_VERSION == 9) || \ - (PY_MINOR_VERSION == 10)) + (PY_MINOR_VERSION == 10) || (PY_MINOR_VERSION == 11)) #error "Python minor version is not supported." #endif #else diff --git a/numba_dpex/core/runtime/_nrt_python_helper.h b/numba_dpex/core/runtime/_nrt_python_helper.h index 8b421bf398..7f995f6e63 100644 --- a/numba_dpex/core/runtime/_nrt_python_helper.h +++ b/numba_dpex/core/runtime/_nrt_python_helper.h @@ -32,16 +32,4 @@ PyObject *MemInfo_get_refcount(MemInfoObject *self, void *closure); PyObject *MemInfo_get_external_allocator(MemInfoObject *self, void *closure); PyObject *MemInfo_get_parent(MemInfoObject *self, void *closure); -/* WARNING: Do not remove this, only modify it! It is a version guard to - * act as a reminder to update this struct on Python version update! */ -#if (PY_MAJOR_VERSION == 3) -#if !((PY_MINOR_VERSION == 8) || (PY_MINOR_VERSION == 9) || \ - (PY_MINOR_VERSION == 10)) -#error "Python minor version is not supported." -#endif -#else -#error "Python major version is not supported." -#endif -/* END WARNING*/ - #endif /* _NRT_PYTHON_HELPER_H_ */