diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/umath/umathmodule.c.src | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/numpy/core/src/umath/umathmodule.c.src b/numpy/core/src/umath/umathmodule.c.src index bd3907731..a6a9b7b2b 100644 --- a/numpy/core/src/umath/umathmodule.c.src +++ b/numpy/core/src/umath/umathmodule.c.src @@ -25,7 +25,7 @@ #define PY_ARRAY_UNIQUE_SYMBOL _npy_umathmodule_ARRAY_API #endif -#include "numpy/noprefix.h" +#include "numpy/ndarrayobject.h" #include "numpy/ufuncobject.h" #include "abstract.h" @@ -292,12 +292,15 @@ InitOtherOperators(PyObject *dictionary) { /*static PyTypeObject PyUFunc_Type;*/ static struct PyMethodDef methods[] = { - {"frompyfunc", (PyCFunction) ufunc_frompyfunc, - METH_VARARGS | METH_KEYWORDS, NULL}, - {"seterrobj", (PyCFunction) ufunc_seterr, - METH_VARARGS, NULL}, - {"geterrobj", (PyCFunction) ufunc_geterr, - METH_VARARGS, NULL}, + {"frompyfunc", + (PyCFunction) ufunc_frompyfunc, + METH_VARARGS | METH_KEYWORDS, NULL}, + {"seterrobj", + (PyCFunction) ufunc_seterr, + METH_VARARGS, NULL}, + {"geterrobj", + (PyCFunction) ufunc_geterr, + METH_VARARGS, NULL}, {NULL, NULL, 0, NULL} /* sentinel */ }; |